mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-03 03:25:53 +03:00
issue #2959: fix test for nonexistent PDF file
This commit is contained in:
parent
a187a361cb
commit
cfacf8bff8
|
@ -128,7 +128,7 @@ class TestFilePdf(PillowTestCase):
|
|||
im = hopper("RGB")
|
||||
temp_dir = tempfile.mkdtemp()
|
||||
try:
|
||||
self.assertRaises(OSError, im.save, os.path.join(temp_dir, "nonexistent.pdf"), append=True)
|
||||
self.assertRaises(IOError, im.save, os.path.join(temp_dir, "nonexistent.pdf"), append=True)
|
||||
finally:
|
||||
os.rmdir(temp_dir)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user