summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjvoisin2019-10-12 21:34:31 +0200
committerjvoisin2019-10-12 21:34:31 +0200
commit893faa66040458df7cde72fa731b97680b5cb1fe (patch)
tree8d2ed187c6e491edf20e45f2739e694b5836c85d
parent4483c06f1904e15cf8304aa36cc848fe003a9dea (diff)
Fix a test for png's lightweight cleaning on corrupted files
Diffstat (limited to '')
-rw-r--r--tests/test_corrupted_files.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/test_corrupted_files.py b/tests/test_corrupted_files.py
index 1d66556..7f8e223 100644
--- a/tests/test_corrupted_files.py
+++ b/tests/test_corrupted_files.py
@@ -194,10 +194,9 @@ class TestCorruptedFiles(unittest.TestCase):
194 os.remove('./tests/data/clean.jpg') 194 os.remove('./tests/data/clean.jpg')
195 195
196 def test_png_lightweight(self): 196 def test_png_lightweight(self):
197 return
198 shutil.copy('./tests/data/dirty.torrent', './tests/data/clean.png') 197 shutil.copy('./tests/data/dirty.torrent', './tests/data/clean.png')
199 p = images.PNGParser('./tests/data/clean.png') 198 with self.assertRaises(ValueError):
200 self.assertTrue(p.remove_all()) 199 p = images.PNGParser('./tests/data/clean.png')
201 os.remove('./tests/data/clean.png') 200 os.remove('./tests/data/clean.png')
202 201
203 def test_avi(self): 202 def test_avi(self):