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.
1 parent 7f983e2 commit c287f51Copy full SHA for c287f51
tests/test_openslide.py
@@ -4,6 +4,5 @@
4
5
class TestOpenslide(unittest.TestCase):
6
def test_read_tif(self):
7
- slide = open_slide('/input/tests/data/test.tif')
8
-
9
- self.assertEqual(1, slide.level_count)
+ with open_slide('/input/tests/data/test.tif') as slide:
+ self.assertEqual(1, slide.level_count)
0 commit comments