mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 10:26:19 +03:00
Changed file opening to use with
This commit is contained in:
parent
241f437b60
commit
4b1784c9ad
|
@ -26,7 +26,7 @@ class TestFileCur(PillowTestCase):
|
||||||
no_cursors_file = "Tests/images/no_cursors.cur"
|
no_cursors_file = "Tests/images/no_cursors.cur"
|
||||||
|
|
||||||
cur = CurImagePlugin.CurImageFile(TEST_FILE)
|
cur = CurImagePlugin.CurImageFile(TEST_FILE)
|
||||||
cur.fp = open(no_cursors_file, "rb")
|
with open(no_cursors_file, "rb") as cur.fp:
|
||||||
self.assertRaises(TypeError, cur._open)
|
self.assertRaises(TypeError, cur._open)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user