diff options
| author | Michael Felt <aixtools@users.noreply.github.com> | 2020-04-03 16:38:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-03 16:38:28 +0200 |
| commit | c3ae6d416043ca528e9cf88c4789afa9df223c5b (patch) | |
| tree | 466dfa0a5ff7f8df2fe614d91c534cb490a97f54 | |
| parent | 6e7341b2cb740741d77e0184db2b9028b1b93773 (diff) | |
| download | python-setuptools-git-c3ae6d416043ca528e9cf88c4789afa9df223c5b.tar.gz | |
bpo-40112: distutils test_search_cpp: Fix logic to determine if C compiler is xlc on AIX (GH-19225)
| -rw-r--r-- | tests/test_config_cmd.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test_config_cmd.py b/tests/test_config_cmd.py index b735fd33..8bd2c942 100644 --- a/tests/test_config_cmd.py +++ b/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 |
