[Python-checkins] bpo-40112: distutils test_search_cpp: Fix logic to determine if C compiler is xlc on AIX (GH-19225) (GH-19444)
Victor Stinner
webhook-mailer at python.org
Thu Apr 9 11:32:30 EDT 2020
https://github.com/python/cpython/commit/cd8e1da3eaf1b39cc0897def3845da2d793a9e4c
commit: cd8e1da3eaf1b39cc0897def3845da2d793a9e4c
branch: 3.8
author: Victor Stinner <vstinner at python.org>
committer: GitHub <noreply at github.com>
date: 2020-04-09T17:32:21+02:00
summary:
bpo-40112: distutils test_search_cpp: Fix logic to determine if C compiler is xlc on AIX (GH-19225) (GH-19444)
(cherry picked from commit 76db37b1d37a9daadd9e5b320f2d5a53cd1352ec)
Co-authored-by: Michael Felt <aixtools at users.noreply.github.com>
files:
M Lib/distutils/tests/test_config_cmd.py
diff --git a/Lib/distutils/tests/test_config_cmd.py b/Lib/distutils/tests/test_config_cmd.py
index b735fd334d878..8bd2c94237846 100644
--- a/Lib/distutils/tests/test_config_cmd.py
+++ b/Lib/distutils/tests/test_config_cmd.py
@@ -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
More information about the Python-checkins
mailing list