From 949daeaf42b3e7687eebf7eb764e63a5eec336ea Mon Sep 17 00:00:00 2001 From: Julian Taylor Date: Thu, 4 Sep 2014 00:22:08 +0200 Subject: 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 --- numpy/compat/tests/test_compat.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'numpy/compat') diff --git a/numpy/compat/tests/test_compat.py b/numpy/compat/tests/test_compat.py index f2bba59e6..9822ab374 100644 --- a/numpy/compat/tests/test_compat.py +++ b/numpy/compat/tests/test_compat.py @@ -1,7 +1,7 @@ from os.path import join from numpy.compat import isfileobj -from numpy.testing import assert_ +from numpy.testing import assert_, run_module_suite from numpy.testing.utils import tempdir @@ -17,3 +17,7 @@ def test_isfileobj(): with open(filename, 'rb') as f: assert_(isfileobj(f)) + + +if __name__ == "__main__": + run_module_suite() -- cgit v1.2.1