mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-21 04:34:47 +03:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
83599c2e65
commit
da0c302ea4
|
@ -67,10 +67,10 @@ def test_viewers():
|
||||||
except NotImplementedError:
|
except NotImplementedError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
def test_commandviewer():
|
def test_commandviewer():
|
||||||
if is_win32():
|
if is_win32():
|
||||||
basecmd = \
|
basecmd = 'start "Pillow" /WAIT "{file}" '
|
||||||
'start "Pillow" /WAIT "{file}" '
|
|
||||||
"&& ping -n 2 127.0.0.1 >NUL "
|
"&& ping -n 2 127.0.0.1 >NUL "
|
||||||
'&& del /f "{file}"'
|
'&& del /f "{file}"'
|
||||||
else:
|
else:
|
||||||
|
@ -80,6 +80,7 @@ def test_commandviewer():
|
||||||
im = hopper()
|
im = hopper()
|
||||||
assert viewer.show(im, command=basecmd) == 1
|
assert viewer.show(im, command=basecmd) == 1
|
||||||
|
|
||||||
|
|
||||||
def test_ipythonviewer():
|
def test_ipythonviewer():
|
||||||
pytest.importorskip("IPython", reason="IPython not installed")
|
pytest.importorskip("IPython", reason="IPython not installed")
|
||||||
for viewer in ImageShow._viewers:
|
for viewer in ImageShow._viewers:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user