diff options
author | jvoisin <julien.voisin@dustri.org> | 2019-10-12 21:34:31 +0200 |
---|---|---|
committer | jvoisin <julien.voisin@dustri.org> | 2019-10-12 21:34:31 +0200 |
commit | 893faa66040458df7cde72fa731b97680b5cb1fe (patch) | |
tree | 8d2ed187c6e491edf20e45f2739e694b5836c85d /tests | |
parent | 4483c06f1904e15cf8304aa36cc848fe003a9dea (diff) | |
download | mat2-893faa66040458df7cde72fa731b97680b5cb1fe.tar.gz mat2-893faa66040458df7cde72fa731b97680b5cb1fe.tar.bz2 mat2-893faa66040458df7cde72fa731b97680b5cb1fe.zip |
Fix a test for png's lightweight cleaning on corrupted files
Diffstat (limited to 'tests')
-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): 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): |