summaryrefslogtreecommitdiff
path: root/numpy/testing/nosetester.py
diff options
context:
space:
mode:
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]