diff options
author | mattip <matti.picus@gmail.com> | 2019-05-06 06:32:17 -0400 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2019-05-06 06:32:17 -0400 |
commit | 5d7680896dd1d4a562be8897f08cee528a5a6c42 (patch) | |
tree | 4f26bcc925bb6e655380ede468b6b9a7d67c6589 /tools/test-installed-numpy.py | |
parent | f16c558fc3c3b57c4f2a93a80a778746ddd2f8ef (diff) | |
download | numpy-5d7680896dd1d4a562be8897f08cee528a5a6c42.tar.gz |
TEST: add duration report to tests
Diffstat (limited to 'tools/test-installed-numpy.py')
-rwxr-xr-x[-rw-r--r--] | tools/test-installed-numpy.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/test-installed-numpy.py b/tools/test-installed-numpy.py index 14f11b7ed..5240253b6 100644..100755 --- a/tools/test-installed-numpy.py +++ b/tools/test-installed-numpy.py @@ -32,6 +32,9 @@ parser.add_option("-m", "--mode", action="store", dest="mode", default="fast", help="'fast', 'full', or something that could be " "passed to pytest [default: %default]") +parser.add_option("-n", "--durations", + dest="durations", default=-1, + help="show time to run slowest N tests [default: -1]") (options, args) = parser.parse_args() import numpy @@ -54,6 +57,7 @@ result = numpy.test(options.mode, verbose=options.verbose, extra_argv=args, doctests=options.doctests, + durations=int(options.durations), coverage=options.coverage) if result: |