summaryrefslogtreecommitdiff
path: root/numpy/testing/nosetester.py
diff options
context:
space:
mode:
authorJulian Taylor <jtaylor.debian@googlemail.com>2014-09-04 00:22:08 +0200
committerJulian Taylor <jtaylor.debian@googlemail.com>2014-09-04 20:01:09 +0200
commit949daeaf42b3e7687eebf7eb764e63a5eec336ea (patch)
tree2b61cb5ff177ac801a4a083dd98804e7befc16aa /numpy/testing/nosetester.py
parent03dcd3b754d9a618c0c2c8c72bb225565758bbf5 (diff)
downloadnumpy-949daeaf42b3e7687eebf7eb764e63a5eec336ea.tar.gz
TST: pass sys.argv to run_module_suite by default
allows passing flags like --pdb to test files also add call to files where its missing
Diffstat (limited to 'numpy/testing/nosetester.py')
-rw-r--r--numpy/testing/nosetester.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/testing/nosetester.py b/numpy/testing/nosetester.py
index a06d559e7..85e9c0f0e 100644
--- a/numpy/testing/nosetester.py
+++ b/numpy/testing/nosetester.py
@@ -90,7 +90,7 @@ def run_module_suite(file_to_run=None, argv=None):
argv: list of strings
Arguments to be passed to the nose test runner. ``argv[0]`` is
ignored. All command line arguments accepted by ``nosetests``
- will work.
+ will work. If it is the default value None, sys.argv is used.
.. versionadded:: 1.9.0
@@ -117,7 +117,7 @@ def run_module_suite(file_to_run=None, argv=None):
raise AssertionError
if argv is None:
- argv = ['', file_to_run]
+ argv = sys.argv + [file_to_run]
else:
argv = argv + [file_to_run]