Commit ae0dbc4a authored by Mark Florisson's avatar Mark Florisson

Fix little 2.3 runtest.py bug

parent b3110a25
...@@ -118,7 +118,7 @@ def get_openmp_compiler_flags(language): ...@@ -118,7 +118,7 @@ def get_openmp_compiler_flags(language):
import subprocess import subprocess
except ImportError: except ImportError:
try: try:
in_, out, err = os.popen(cc + " -v") in_, out_err = os.popen4([cc, "-v"])
except EnvironmentError: except EnvironmentError:
# Be compatible with Python 3 # Be compatible with Python 3
_, e, _ = sys.exc_info() _, e, _ = sys.exc_info()
...@@ -126,7 +126,7 @@ def get_openmp_compiler_flags(language): ...@@ -126,7 +126,7 @@ def get_openmp_compiler_flags(language):
(language, os.strerror(e.errno), cc)) (language, os.strerror(e.errno), cc))
return None return None
output = out.read() or err.read() output = out_err.read()
else: else:
try: try:
p = subprocess.Popen([cc, "-v"], stdout=subprocess.PIPE, p = subprocess.Popen([cc, "-v"], stdout=subprocess.PIPE,
......
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