summaryrefslogtreecommitdiff
path: root/numpy/testing/nosetester.py
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2013-05-09 18:09:44 +0300
committerPauli Virtanen <pav@iki.fi>2013-05-09 19:00:55 +0300
commitcdea31e67e389c960bdd5414b2de43a84cdfe04c (patch)
treee4f361bcd66a7254a1f41fe9b1e305846c2f5049 /numpy/testing/nosetester.py
parentb76df8583ef966d434c9b87fd22422c68e6bd44e (diff)
downloadnumpy-cdea31e67e389c960bdd5414b2de43a84cdfe04c.tar.gz
BUG: testing: always enable --exe
Setuptools tends to set +x to the installed test scripts, which makes numpy.test() to not run any tests. Having --exe always enabled is not problematic because only files matching 'test_*.py' are looked into.
Diffstat (limited to 'numpy/testing/nosetester.py')
-rw-r--r--numpy/testing/nosetester.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/numpy/testing/nosetester.py b/numpy/testing/nosetester.py
index d07a5ad0b..e3f96b9a9 100644
--- a/numpy/testing/nosetester.py
+++ b/numpy/testing/nosetester.py
@@ -188,6 +188,14 @@ class NoseTester(object):
label = 'not slow'
argv += ['-A', label]
argv += ['--verbosity', str(verbose)]
+
+ # When installing with setuptools, and also in some other cases, the
+ # test_*.py files end up marked +x executable. Nose, by default, does
+ # not run files marked with +x as they might be scripts. However, in
+ # our case nose only looks for test_*.py files under the package
+ # directory, which should be safe.
+ argv += ['--exe']
+
if extra_argv:
argv += extra_argv
return argv