Handle error when encrypted archive file is exctracted. (Closes: #904685)
- Adding encrypted zip test files and test case
- Check wether archive is encrypted, and raises exception
Signed-off-by:
Chris Lamb <lamby@debian.org>
Showing
- diffoscope/comparators/zip.py 13 additions, 3 deletionsdiffoscope/comparators/zip.py
- tests/comparators/test_zip.py 7 additions, 0 deletionstests/comparators/test_zip.py
- tests/data/encrypted1.zip 0 additions, 0 deletionstests/data/encrypted1.zip
- tests/data/encrypted2.zip 0 additions, 0 deletionstests/data/encrypted2.zip
tests/data/encrypted1.zip
0 → 100644
File added
tests/data/encrypted2.zip
0 → 100644
File added