diff --git a/tests/test_corrupted_files.py b/tests/test_corrupted_files.py index 1d665566024e45218b683dee1dd098e57cdb6968..7f8e223bba8b822adcc748c636001d16fc08e72b 100644 --- a/tests/test_corrupted_files.py +++ b/tests/test_corrupted_files.py @@ -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):