Fix a test for png's lightweight cleaning on corrupted files
This commit is contained in:
parent
4483c06f19
commit
893faa6604
@ -194,10 +194,9 @@ class TestCorruptedFiles(unittest.TestCase):
|
|||||||
os.remove('./tests/data/clean.jpg')
|
os.remove('./tests/data/clean.jpg')
|
||||||
|
|
||||||
def test_png_lightweight(self):
|
def test_png_lightweight(self):
|
||||||
return
|
|
||||||
shutil.copy('./tests/data/dirty.torrent', './tests/data/clean.png')
|
shutil.copy('./tests/data/dirty.torrent', './tests/data/clean.png')
|
||||||
p = images.PNGParser('./tests/data/clean.png')
|
with self.assertRaises(ValueError):
|
||||||
self.assertTrue(p.remove_all())
|
p = images.PNGParser('./tests/data/clean.png')
|
||||||
os.remove('./tests/data/clean.png')
|
os.remove('./tests/data/clean.png')
|
||||||
|
|
||||||
def test_avi(self):
|
def test_avi(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user