We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ba04d58 + d4ed512 commit eef4848Copy full SHA for eef4848
Tests/test_imageshow.py
@@ -59,15 +59,12 @@ def test_show(mode: str) -> None:
59
assert ImageShow.show(im)
60
61
62
-def test_show_without_viewers() -> None:
63
- viewers = ImageShow._viewers
64
- ImageShow._viewers = []
+def test_show_without_viewers(monkeypatch: pytest.MonkeyPatch) -> None:
+ monkeypatch.setattr(ImageShow, "_viewers", [])
65
66
with hopper() as im:
67
assert not ImageShow.show(im)
68
69
- ImageShow._viewers = viewers
70
-
71
72
@pytest.mark.parametrize(
73
"viewer",
0 commit comments