diff --git a/Tests/test_imageshow.py b/Tests/test_imageshow.py index 07e2100e8..14614b29e 100644 --- a/Tests/test_imageshow.py +++ b/Tests/test_imageshow.py @@ -73,12 +73,12 @@ def test_commandviewer(): 'start "Pillow" /WAIT "{file}" ' "&& ping -n 2 127.0.0.1 >NUL " '&& del /f "{file}"' - else: - # Not guessing command, just deleting + else: + # Not guessing command, just deleting basecmd = "rm -f {file}" - viewer = ImageShow.CommandViewer() - im = hopper() - assert viewer.show(im, command=basecmd) == 1 + viewer = ImageShow.CommandViewer() + im = hopper() + assert viewer.show(im, command=basecmd) == 1 def test_ipythonviewer(): pytest.importorskip("IPython", reason="IPython not installed")