diff options
| author | jvoisin | 2019-10-12 21:34:31 +0200 |
|---|---|---|
| committer | jvoisin | 2019-10-12 21:34:31 +0200 |
| commit | 893faa66040458df7cde72fa731b97680b5cb1fe (patch) | |
| tree | 8d2ed187c6e491edf20e45f2739e694b5836c85d /tests/test_corrupted_files.py | |
| parent | 4483c06f1904e15cf8304aa36cc848fe003a9dea (diff) | |
Fix a test for png's lightweight cleaning on corrupted files
Diffstat (limited to '')
| -rw-r--r-- | tests/test_corrupted_files.py | 5 |
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): |
