]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40112: distutils test_search_cpp: Fix logic to determine if C compiler is xlc...
authorMichael Felt <aixtools@users.noreply.github.com>
Fri, 3 Apr 2020 14:38:28 +0000 (16:38 +0200)
committerGitHub <noreply@github.com>
Fri, 3 Apr 2020 14:38:28 +0000 (16:38 +0200)
Lib/distutils/tests/test_config_cmd.py

index b735fd334d87805d0693e71885e18f985311b069..8bd2c94237846acb1878d617a93b5d3fa92565d1 100644 (file)
@@ -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