Skip to content
Snippets Groups Projects
Commit 893faa66 authored by Julien (jvoisin) Voisin's avatar Julien (jvoisin) Voisin
Browse files

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

parent 4483c06f
Branches
Tags
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment