Skip to content

Commit

Permalink
Merge pull request #284 from cgohlke/patch-2
Browse files Browse the repository at this point in the history
Allow to run numexpr.test() in verbose mode
  • Loading branch information
robbmcleod committed Sep 14, 2017
2 parents 3090ac4 + 01756b9 commit 7e1b543
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions numexpr/tests/test_numexpr.py
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ def print_versions():
print('-=' * 38)


def test():
def test(verbosity=1):
"""
Run all the tests in the test suite.
"""
Expand All @@ -1025,7 +1025,7 @@ def test():
# Ignoring them in tests should be ok, as all results are checked out.
# See https://github.com/pydata/numexpr/issues/183 for details.
np.seterr(divide='ignore', invalid='ignore', over='ignore', under='ignore')
return unittest.TextTestRunner().run(suite())
return unittest.TextTestRunner(verbosity=verbosity).run(suite())


test.__test__ = False
Expand Down

0 comments on commit 7e1b543

Please sign in to comment.