diff options
author | xdegaye <xdegaye@gmail.com> | 2017-11-18 17:17:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-18 17:17:16 (GMT) |
commit | d34d8fc24f23ccff5de03c9277da5acbbdc30e90 (patch) | |
tree | 5a602b1dc355b16ffcf307c4444521c0f6c80494 /Lib/distutils/tests/test_archive_util.py | |
parent | 9001d1f438e968f4d327313e0a95a49f22e724f4 (diff) | |
download | cpython-d34d8fc24f23ccff5de03c9277da5acbbdc30e90.zip cpython-d34d8fc24f23ccff5de03c9277da5acbbdc30e90.tar.gz cpython-d34d8fc24f23ccff5de03c9277da5acbbdc30e90.tar.bz2 |
bpo-29185: Fix `test_distutils` failures on Android (GH-4438)
* Run gzip with separate command line options (Android understands '-f9' as the name of a file).
* Creation of a hard link is controled by SELinux on Android.
Diffstat (limited to 'Lib/distutils/tests/test_archive_util.py')
-rw-r--r-- | Lib/distutils/tests/test_archive_util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/tests/test_archive_util.py b/Lib/distutils/tests/test_archive_util.py index 02fa1e2..14ba4ca 100644 --- a/Lib/distutils/tests/test_archive_util.py +++ b/Lib/distutils/tests/test_archive_util.py @@ -162,7 +162,7 @@ class ArchiveUtilTestCase(support.TempdirManager, # now create another tarball using `tar` tarball2 = os.path.join(tmpdir, 'archive2.tar.gz') tar_cmd = ['tar', '-cf', 'archive2.tar', 'dist'] - gzip_cmd = ['gzip', '-f9', 'archive2.tar'] + gzip_cmd = ['gzip', '-f', '-9', 'archive2.tar'] old_dir = os.getcwd() os.chdir(tmpdir) try: |