Imporoved the documentation and tests for make_archive() and unpack_archive().
Improved error handling when corresponding compress module is not available.
Brake circular dependency between shutil and tarfile modules.
import warnings
from test import support
-from test.support import TESTFN, check_warnings, captured_stdout
+from test.support import (TESTFN, check_warnings, captured_stdout,
- requires_zlib, android_not_root)
-
- try:
- import bz2
- BZ2_SUPPORTED = True
- except ImportError:
- BZ2_SUPPORTED = False
-
- try:
- import lzma
- LZMA_SUPPORTED = True
- except ImportError:
- LZMA_SUPPORTED = False
++ android_not_root)
TESTFN2 = TESTFN + "2"