mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-23 19:44:13 +03:00
fixed bug in test
This commit is contained in:
parent
86476a9bd2
commit
17453f207d
|
@ -29,7 +29,7 @@ def test_invalid_file():
|
||||||
|
|
||||||
no_cursors_file = "Tests/images/cur/no_cursors.cur"
|
no_cursors_file = "Tests/images/cur/no_cursors.cur"
|
||||||
|
|
||||||
cur = CurImagePlugin.CurImageFile(TEST_FILE)
|
cur = CurImagePlugin.CurImageFile("Tests/images/cur/deerstalker.cur")
|
||||||
cur.fp.close()
|
cur.fp.close()
|
||||||
with open(no_cursors_file, "rb") as cur.fp:
|
with open(no_cursors_file, "rb") as cur.fp:
|
||||||
with pytest.raises(TypeError):
|
with pytest.raises(TypeError):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user