diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2018-04-03 12:32:53 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2018-04-04 06:42:18 -0600 |
commit | 7f68c8a6a38049284fcdfd80c8c983996f0383f8 (patch) | |
tree | 325dd93055916cb9954d64fff516adfb148bc455 /tools/test-installed-numpy.py | |
parent | 0938043c04726a2cd4d8acfb225dca3a19868b44 (diff) | |
download | numpy-7f68c8a6a38049284fcdfd80c8c983996f0383f8.tar.gz |
TST: Update travis and appveyor to use pytest.
For the time being, these tests will ignore the flood of deprecated
yield test warnings. Fixing those is for another PR.
Diffstat (limited to 'tools/test-installed-numpy.py')
-rw-r--r-- | tools/test-installed-numpy.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/test-installed-numpy.py b/tools/test-installed-numpy.py index 26a50b2fa..04a2a1da2 100644 --- a/tools/test-installed-numpy.py +++ b/tools/test-installed-numpy.py @@ -27,11 +27,11 @@ parser.add_option("--doctests", help="Run doctests in module") parser.add_option("--coverage", action="store_true", dest="coverage", default=False, - help="report coverage of NumPy code (requires 'coverage' module") + help="report coverage of NumPy code (requires 'pytest-cov' module") parser.add_option("-m", "--mode", action="store", dest="mode", default="fast", help="'fast', 'full', or something that could be " - "passed to nosetests -A [default: %default]") + "passed to pytest [default: %default]") (options, args) = parser.parse_args() import numpy @@ -52,7 +52,7 @@ result = numpy.test(options.mode, doctests=options.doctests, coverage=options.coverage) -if result.wasSuccessful(): +if result: sys.exit(0) else: sys.exit(1) |