diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2014-08-06 15:50:19 (GMT) |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-08-06 15:50:19 (GMT) |
| commit | 1121377cdb0bef5a4a07699ae3d93c69a1f47071 (patch) | |
| tree | 13cd19069226278293cc35e2f7b2b7171a695be1 /Lib/test/test_shutil.py | |
| parent | af78ef18241040a91e793bfc511a182d9e5d0bc2 (diff) | |
| download | cpython-1121377cdb0bef5a4a07699ae3d93c69a1f47071.zip cpython-1121377cdb0bef5a4a07699ae3d93c69a1f47071.tar.gz cpython-1121377cdb0bef5a4a07699ae3d93c69a1f47071.tar.bz2 | |
Issue #5411: Added support for the "xztar" format in the shutil module.
Diffstat (limited to 'Lib/test/test_shutil.py')
| -rw-r--r-- | Lib/test/test_shutil.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py index 098d58e..511efa6 100644 --- a/Lib/test/test_shutil.py +++ b/Lib/test/test_shutil.py @@ -32,6 +32,12 @@ try: except ImportError: BZ2_SUPPORTED = False +try: + import lzma + LZMA_SUPPORTED = True +except ImportError: + LZMA_SUPPORTED = False + TESTFN2 = TESTFN + "2" try: @@ -1156,6 +1162,8 @@ class TestShutil(unittest.TestCase): formats = ['tar', 'gztar', 'zip'] if BZ2_SUPPORTED: formats.append('bztar') + if LZMA_SUPPORTED: + formats.append('xztar') for format in formats: tmpdir = self.mkdtemp() |
