From 91aa29ca2bcdc7bc1eba36d65e5b646ef7ba6cef Mon Sep 17 00:00:00 2001 From: Hugo Date: Tue, 23 Sep 2014 16:16:04 +0300 Subject: [PATCH] Replace lena with hopper --- Tests/test_file_libtiff.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Tests/test_file_libtiff.py b/Tests/test_file_libtiff.py index af0597621..85b796242 100644 --- a/Tests/test_file_libtiff.py +++ b/Tests/test_file_libtiff.py @@ -36,7 +36,7 @@ class TestFileLibTiff(LibTiffTestCase): def test_g4_tiff(self): """Test the ordinary file path load path""" - file = "Tests/images/lena_g4_500.tif" + file = "Tests/images/hopper_g4_500.tif" im = Image.open(file) self.assertEqual(im.size, (500, 500)) @@ -50,7 +50,7 @@ class TestFileLibTiff(LibTiffTestCase): def test_g4_tiff_file(self): """Testing the string load path""" - file = "Tests/images/lena_g4_500.tif" + file = "Tests/images/hopper_g4_500.tif" with open(file, 'rb') as f: im = Image.open(f) @@ -60,7 +60,7 @@ class TestFileLibTiff(LibTiffTestCase): def test_g4_tiff_bytesio(self): """Testing the stringio loading code path""" from io import BytesIO - file = "Tests/images/lena_g4_500.tif" + file = "Tests/images/hopper_g4_500.tif" s = BytesIO() with open(file, 'rb') as f: s.write(f.read()) @@ -72,8 +72,8 @@ class TestFileLibTiff(LibTiffTestCase): def test_g4_eq_png(self): """ Checking that we're actually getting the data that we expect""" - png = Image.open('Tests/images/lena_bw_500.png') - g4 = Image.open('Tests/images/lena_g4_500.tif') + png = Image.open('Tests/images/hopper_bw_500.png') + g4 = Image.open('Tests/images/hopper_g4_500.tif') self.assert_image_equal(g4, png) @@ -87,7 +87,7 @@ class TestFileLibTiff(LibTiffTestCase): def test_g4_write(self): """Checking to see that the saved image is the same as what we wrote""" - file = "Tests/images/lena_g4_500.tif" + file = "Tests/images/hopper_g4_500.tif" orig = Image.open(file) out = self.tempfile("temp.tif") @@ -156,7 +156,7 @@ class TestFileLibTiff(LibTiffTestCase): value, reloaded[tag], "%s didn't roundtrip" % tag) def test_g3_compression(self): - i = Image.open('Tests/images/lena_g4_500.tif') + i = Image.open('Tests/images/hopper_g4_500.tif') out = self.tempfile("temp.tif") i.save(out, compression='group3') @@ -213,7 +213,7 @@ class TestFileLibTiff(LibTiffTestCase): def test_g4_string_info(self): """Tests String data in info directory""" - file = "Tests/images/lena_g4_500.tif" + file = "Tests/images/hopper_g4_500.tif" orig = Image.open(file) out = self.tempfile("temp.tif") @@ -302,7 +302,7 @@ class TestFileLibTiff(LibTiffTestCase): self.assertRaises(IOError, lambda: im.save(out, compression='group4')) def test_fp_leak(self): - im = Image.open("Tests/images/lena_g4_500.tif") + im = Image.open("Tests/images/hopper_g4_500.tif") fn = im.fp.fileno() os.fstat(fn)