Fixed unclosed file warning

This commit is contained in:
Andrew Murray 2024-10-07 16:50:05 +11:00
parent 27c1bb2654
commit 76dd669e6b

View File

@ -117,5 +117,5 @@ def test_ipythonviewer() -> None:
else:
pytest.fail("IPythonViewer not found")
im = hopper()
assert test_viewer.show(im) == 1
with hopper() as im:
assert test_viewer.show(im) == 1