mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #5411: Added support for the "xztar" format in the shutil module.
This commit is contained in:
parent
af78ef1824
commit
1121377cdb
4 changed files with 40 additions and 5 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue