Skip to content

Commit

Permalink
bpo-40112: distutils test_search_cpp: Fix logic to determine if C com…
Browse files Browse the repository at this point in the history
…piler is xlc on AIX (GH-19225)
  • Loading branch information
aixtools committed Apr 3, 2020
1 parent b74468e commit 76db37b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Lib/distutils/tests/test_config_cmd.py
Expand Up @@ -47,8 +47,7 @@ def test_search_cpp(self):
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
Expand Down

0 comments on commit 76db37b

Please sign in to comment.