patool/tests/archives
Charles LeDoux 03018b4e5b Only return separate encoding if `program_supports_compression`
Why:

* To prevent archives such as archive.rar.gz from breaking patool.

This change addresses the need by:

* move program_supports_compression above the `import util` line
    * If we don't do this, we have a circular import.
* Import program_supports_compression into util.
* Only return separate mime and encoding if program_support_compression
  returns True.
* Otherwise return the mime of the encoding and no encoding.
* Add fixes so that current tests still pass.
    * In program_support_compression:
        - Test tar separately and check all supported tar wrappers.
    * In test_tar:
        - Add file requirement for compress in the compress check.
        - Otherwise tar tries and failes when compress isn't installed.
2018-09-11 23:50:36 -04:00
..
__init__.py Make tests non-interactive 2015-12-06 20:23:27 +01:00
test_7z.py Updated copyright 2016-01-09 21:09:27 +01:00
test_7za.py Updated copyright 2016-01-09 21:09:27 +01:00
test_7zr.py Updated copyright 2016-01-09 21:09:27 +01:00
test_ar.py Updated copyright 2015-07-19 19:29:01 +02:00
test_arc.py Updated copyright 2015-07-19 19:29:01 +02:00
test_archmage.py Support archmage CHM files. 2012-11-19 22:27:54 +01:00
test_arj.py Split archive tests 2012-11-14 20:24:34 +01:00
test_bsdcpio.py Split archive tests 2012-11-14 20:24:34 +01:00
test_bsdtar.py Updated copyright 2016-01-09 21:09:27 +01:00
test_bzip2.py Updated copyright 2015-07-19 19:29:01 +02:00
test_cabextract.py Split archive tests 2012-11-14 20:24:34 +01:00
test_chmlib.py Added support for libchm-bin. 2012-11-19 22:39:50 +01:00
test_clzip.py Updated copyright 2015-07-19 19:29:01 +02:00
test_compress.py Updated copyright 2015-07-19 19:29:01 +02:00
test_cpio.py Split archive tests 2012-11-14 20:24:34 +01:00
test_dpkg.py Split archive tests 2012-11-14 20:24:34 +01:00
test_flac.py Updated copyright 2015-07-19 19:29:01 +02:00
test_genisoimage.py Updated copyright 2015-07-19 19:29:01 +02:00
test_gzip.py Updated copyright 2015-07-19 19:29:01 +02:00
test_isoinfo.py Updated copyright 2015-07-19 19:29:01 +02:00
test_lbzip2.py Updated copyright 2015-07-19 19:29:01 +02:00
test_lcab.py Split archive tests 2012-11-14 20:24:34 +01:00
test_lha.py Updated copyright 2015-07-19 19:29:01 +02:00
test_lhasa.py Split archive tests 2012-11-14 20:24:34 +01:00
test_lrzip.py Updated copyright 2015-07-19 19:29:01 +02:00
test_lzip.py Updated copyright 2015-07-19 19:29:01 +02:00
test_lzma.py Updated copyright 2015-07-19 19:29:01 +02:00
test_lzop.py Updated copyright 2015-07-19 19:29:01 +02:00
test_mac.py Updated copyright 2015-07-19 19:29:01 +02:00
test_nomarch.py Updated copyright 2015-07-19 19:29:01 +02:00
test_pbzip2.py Updated copyright 2015-07-19 19:29:01 +02:00
test_pdlzip.py Updated copyright 2015-07-19 19:29:01 +02:00
test_pigz.py Updated copyright 2015-07-19 19:29:01 +02:00
test_plzip.py Updated copyright 2015-07-19 19:29:01 +02:00
test_pybz2.py Updated copyright 2015-07-19 19:29:01 +02:00
test_pyecho.py Split archive tests 2012-11-14 20:24:34 +01:00
test_pygzip.py Updated copyright 2015-07-19 19:29:01 +02:00
test_pylzma.py Updated copyright 2015-07-19 19:29:01 +02:00
test_pytarfile.py Updated copyright 2016-01-09 21:09:27 +01:00
test_pyzipfile.py Updated copyright 2016-01-09 21:09:27 +01:00
test_rar.py Updated copyright 2016-01-09 21:09:27 +01:00
test_rpm.py Split archive tests 2012-11-14 20:24:34 +01:00
test_rpm2cpio.py Split archive tests 2012-11-14 20:24:34 +01:00
test_rzip.py Updated copyright 2015-07-19 19:29:01 +02:00
test_shar.py Updated copyright 2015-07-19 19:29:01 +02:00
test_shorten.py Updated copyright 2015-07-19 19:29:01 +02:00
test_star.py Updated copyright 2016-01-09 21:09:27 +01:00
test_tar.py Only return separate encoding if `program_supports_compression` 2018-09-11 23:50:36 -04:00
test_unace.py Updated copyright 2016-01-09 21:09:27 +01:00
test_unadf.py Updated copyright 2015-07-19 19:29:01 +02:00
test_unalz.py Split archive tests 2012-11-14 20:24:34 +01:00
test_uncompressreal.py Split archive tests 2012-11-14 20:24:34 +01:00
test_unrar.py Split archive tests 2012-11-14 20:24:34 +01:00
test_unshar.py Split archive tests 2012-11-14 20:24:34 +01:00
test_unzip.py Updated copyright 2016-01-09 21:09:27 +01:00
test_xdms.py Split archive tests 2012-11-14 20:24:34 +01:00
test_xz.py Updated copyright 2015-07-19 19:29:01 +02:00
test_zip.py Updated copyright 2016-01-09 21:09:27 +01:00
test_zoo.py Updated copyright 2015-07-19 19:29:01 +02:00
test_zopfli.py Updated copyright 2015-07-19 19:29:01 +02:00
test_zpaq.py Updated copyright 2015-07-19 19:29:01 +02:00