summaryrefslogtreecommitdiff
path: root/numpy/distutils/fcompiler
diff options
context:
space:
mode:
authorOleksandr Pavlyk <oleksandr.pavlyk@intel.com>2019-07-09 09:46:34 -0500
committerOleksandr Pavlyk <oleksandr.pavlyk@intel.com>2019-07-09 09:46:34 -0500
commit6f3483ac04bc59c6b9810397b674ec19b9c071c9 (patch)
tree7c2e8b6b7f953766be2a268bd7073acb03792812 /numpy/distutils/fcompiler
parentc920f98072226c1604d097bdd40db6c8a5a71f06 (diff)
downloadnumpy-6f3483ac04bc59c6b9810397b674ec19b9c071c9.tar.gz
Fixing failure on Python 2.7 on Windows 7
When executing pytest --pyargs numpy.distuils.tests.test_fcompiler test_fcompiler_flags fails with ``` > raise e E ValueError: [u'path', u'include', u'lib'] lib\site-packages\numpy\distutils\fcompiler\compaq.py:100: ValueError ---------------------------- Captured stdout call ----------------------------- Unexpected ValueError in C:\TCAgent1\work\7cc6992266387eba\distribution\lib\site -packages\numpy\distutils\fcompiler\compaq.py ``` It appears that the list argument of ValueError contains 'path' not at the end of the list like the current test expects, but at the beginning. After this fix, 9 test failures of `pytest --pyargs numpy.distutils` go away.
Diffstat (limited to 'numpy/distutils/fcompiler')
-rw-r--r--numpy/distutils/fcompiler/compaq.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/distutils/fcompiler/compaq.py b/numpy/distutils/fcompiler/compaq.py
index 07d502706..671b3a55f 100644
--- a/numpy/distutils/fcompiler/compaq.py
+++ b/numpy/distutils/fcompiler/compaq.py
@@ -95,7 +95,7 @@ class CompaqVisualFCompiler(FCompiler):
raise e
except ValueError:
e = get_exception()
- if not "path']" in str(e):
+ if not "'path'" in str(e):
print("Unexpected ValueError in", __file__)
raise e