From cfacf8bff88e330feff136a3a8ee9c73bbca7811 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dvo=C5=99=C3=A1k=20V=C3=A1clav?= Date: Wed, 24 Jan 2018 02:39:15 +0100 Subject: [PATCH] issue #2959: fix test for nonexistent PDF file --- Tests/test_file_pdf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/test_file_pdf.py b/Tests/test_file_pdf.py index d60905430..ba4523f9c 100644 --- a/Tests/test_file_pdf.py +++ b/Tests/test_file_pdf.py @@ -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)