1
0
Fork 0

Fix a test for png's lightweight cleaning on corrupted files

This commit is contained in:
jvoisin 2019-10-12 21:34:31 +02:00
parent 4483c06f19
commit 893faa6604
1 changed files with 2 additions and 3 deletions

View File

@ -194,10 +194,9 @@ class TestCorruptedFiles(unittest.TestCase):
os.remove('./tests/data/clean.jpg')
def test_png_lightweight(self):
return
shutil.copy('./tests/data/dirty.torrent', './tests/data/clean.png')
p = images.PNGParser('./tests/data/clean.png')
self.assertTrue(p.remove_all())
with self.assertRaises(ValueError):
p = images.PNGParser('./tests/data/clean.png')
os.remove('./tests/data/clean.png')
def test_avi(self):