From cbb2f9dce941698b448c579034687c7f57145970 Mon Sep 17 00:00:00 2001 From: hugovk Date: Fri, 6 Jun 2014 15:26:48 +0300 Subject: [PATCH] Fix test/test_imagefileio.py --- Tests/test_image_paste.py | 5 ----- Tests/test_image_save.py | 5 ----- Tests/test_image_seek.py | 5 ----- Tests/test_image_show.py | 5 ----- Tests/test_image_tell.py | 5 ----- Tests/test_image_verify.py | 5 ----- test/test_imagefileio.py | 4 +++- 7 files changed, 3 insertions(+), 31 deletions(-) delete mode 100644 Tests/test_image_paste.py delete mode 100644 Tests/test_image_save.py delete mode 100644 Tests/test_image_seek.py delete mode 100644 Tests/test_image_show.py delete mode 100644 Tests/test_image_tell.py delete mode 100644 Tests/test_image_verify.py diff --git a/Tests/test_image_paste.py b/Tests/test_image_paste.py deleted file mode 100644 index 7d4b6d9b3..000000000 --- a/Tests/test_image_paste.py +++ /dev/null @@ -1,5 +0,0 @@ -from tester import * - -from PIL import Image - -success() diff --git a/Tests/test_image_save.py b/Tests/test_image_save.py deleted file mode 100644 index 7d4b6d9b3..000000000 --- a/Tests/test_image_save.py +++ /dev/null @@ -1,5 +0,0 @@ -from tester import * - -from PIL import Image - -success() diff --git a/Tests/test_image_seek.py b/Tests/test_image_seek.py deleted file mode 100644 index 7d4b6d9b3..000000000 --- a/Tests/test_image_seek.py +++ /dev/null @@ -1,5 +0,0 @@ -from tester import * - -from PIL import Image - -success() diff --git a/Tests/test_image_show.py b/Tests/test_image_show.py deleted file mode 100644 index 7d4b6d9b3..000000000 --- a/Tests/test_image_show.py +++ /dev/null @@ -1,5 +0,0 @@ -from tester import * - -from PIL import Image - -success() diff --git a/Tests/test_image_tell.py b/Tests/test_image_tell.py deleted file mode 100644 index 7d4b6d9b3..000000000 --- a/Tests/test_image_tell.py +++ /dev/null @@ -1,5 +0,0 @@ -from tester import * - -from PIL import Image - -success() diff --git a/Tests/test_image_verify.py b/Tests/test_image_verify.py deleted file mode 100644 index 7d4b6d9b3..000000000 --- a/Tests/test_image_verify.py +++ /dev/null @@ -1,5 +0,0 @@ -from tester import * - -from PIL import Image - -success() diff --git a/test/test_imagefileio.py b/test/test_imagefileio.py index 73f660361..32ee0bc5e 100644 --- a/test/test_imagefileio.py +++ b/test/test_imagefileio.py @@ -11,9 +11,11 @@ class TestImageFileIo(PillowTestCase): class DumbFile: def __init__(self, data): self.data = data + def read(self, bytes=None): - self.assertEqual(bytes, None) + assert(bytes is None) return self.data + def close(self): pass