diff options
author | Michael Felt <aixtools@users.noreply.github.com> | 2020-04-03 14:38:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-03 14:38:28 (GMT) |
commit | 76db37b1d37a9daadd9e5b320f2d5a53cd1352ec (patch) | |
tree | 7eda54a0fea00ca959688730617bdfcb688d4662 /Lib/distutils/tests | |
parent | b74468e233a5137ff518e61eff65ca2d8833e38a (diff) | |
download | cpython-76db37b1d37a9daadd9e5b320f2d5a53cd1352ec.zip cpython-76db37b1d37a9daadd9e5b320f2d5a53cd1352ec.tar.gz cpython-76db37b1d37a9daadd9e5b320f2d5a53cd1352ec.tar.bz2 |
bpo-40112: distutils test_search_cpp: Fix logic to determine if C compiler is xlc on AIX (GH-19225)
Diffstat (limited to 'Lib/distutils/tests')
-rw-r--r-- | Lib/distutils/tests/test_config_cmd.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/distutils/tests/test_config_cmd.py b/Lib/distutils/tests/test_config_cmd.py index b735fd3..8bd2c94 100644 --- a/Lib/distutils/tests/test_config_cmd.py +++ b/Lib/distutils/tests/test_config_cmd.py @@ -47,8 +47,7 @@ class ConfigTestCase(support.LoggingSilencer, cmd = config(dist) cmd._check_compiler() compiler = cmd.compiler - is_xlc = shutil.which(compiler.preprocessor[0]).startswith("/usr/vac") - if is_xlc: + if sys.platform[:3] == "aix" and "xlc" in compiler.preprocessor[0].lower(): self.skipTest('xlc: The -E option overrides the -P, -o, and -qsyntaxonly options') # simple pattern searches |