issue #2959: fix test for nonexistent PDF file

This commit is contained in:
Dvořák Václav 2018-01-24 02:39:15 +01:00
parent a187a361cb
commit cfacf8bff8

View File

@ -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)