mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-14 11:26:27 +03:00
Corrected context manager test
This commit is contained in:
parent
9c78c3f972
commit
d79f2bb7dc
|
@ -36,9 +36,8 @@ class TestImagePsd(PillowTestCase):
|
||||||
|
|
||||||
def test_context_manager(self):
|
def test_context_manager(self):
|
||||||
def open():
|
def open():
|
||||||
im = Image.open(test_file)
|
with Image.open(test_file) as im:
|
||||||
im.load()
|
im.load()
|
||||||
im.close()
|
|
||||||
|
|
||||||
self.assert_warning(None, open)
|
self.assert_warning(None, open)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user