Skip to content
Permalink
Browse files

documentation, better unit test

  • Loading branch information...
sdpython committed Sep 23, 2016
1 parent 99c25c0 commit f049715e91704f5ea0b215a7e0901dd8dbd4e67a
@@ -81,6 +81,11 @@ def test_uncompress_7zip(self):
self._testMethodName,
OutputPrint=__name__ == "__main__")

import pylzma
if pylzma.__version__ == "0.4.8":
# this version does not include a fix to read file produced by the latest version of 7z
return

fold = get_temp_folder(__file__, "temp_uncompress_7zip")
data = os.path.join(fold, "..", "data", "ftplib.7z")
files = un7zip_files(data, where_to=fold, fLOG=fLOG)
@@ -222,6 +222,8 @@ def zip7_files(filename_7z, file_set, fLOG=noLOG, temp_folder="."):
failed to decompress the file produced by the latest version
of `7z <http://www.7-zip.org/>`_ (2016-09-23). The compression
was changed by tweaking the command line. LZMA is used instead LZMA2.
The current version does not include this
`commit <https://github.com/fancycode/pylzma/commit/b5c3c2bd4ab7abfb65de772861ecc600fe37394b>`_.
"""
if sys.platform.startswith("win"):
exe = r"C:\Program Files\7-Zip\7z.exe"
@@ -330,6 +330,9 @@ def default_filter_warning(w):
elif "sympy" in w.filename:
if "inspect.getargspec() is deprecated" in str(w.message):
return False
elif "_mode_cbc.py" in w.filename:
if "will be forbidden in the future" in str(w.message):
return False
elif isinstance(w.message, ImportWarning):
if w.filename.endswith("_bootstrap_external.py"):
return False

0 comments on commit f049715

Please sign in to comment.
You can’t perform that action at this time.