Commit 259c159f authored by Michael Felt's avatar Michael Felt Committed by Nick Coghlan

bpo-34897: avoid distutils test error when CXX is not set (GH-9706)

Depending on system config, a missing candidate compiler name may be
reported as the empty string rather than as None, so adjust the test
helper accordingly.
parent 2062a206
......@@ -2783,7 +2783,7 @@ def missing_compiler_executable(cmd_names=[]):
if cmd_names:
assert cmd is not None, \
"the '%s' executable is not configured" % name
elif cmd is None:
elif not cmd:
continue
if spawn.find_executable(cmd[0]) is None:
return cmd[0]
......
Adjust test.support.missing_compiler_executable check so that a nominal
command name of "" is ignored. Patch by Michael Felt.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment