From 9d391e77e247e4718d94c3f6000d34832576d356 Mon Sep 17 00:00:00 2001 From: xdegaye Date: Sat, 18 Nov 2017 18:17:16 +0100 Subject: 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. --- tests/test_archive_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_archive_util.py') diff --git a/tests/test_archive_util.py b/tests/test_archive_util.py index 02fa1e27..14ba4ca3 100644 --- a/tests/test_archive_util.py +++ b/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: -- cgit v1.2.1