diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2017-06-27 15:47:42 +0200 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2017-06-27 15:53:00 +0200 |
commit | f2ef214e2fae5aae5c5e8d89d5b152b11b9be41a (patch) | |
tree | 5bdb4d20771fdc68b0dd00a5ee26bc94f67f3774 | |
parent | 9b165728397afa8074185237abeb4e6f7e7eea84 (diff) | |
download | numpy-f2ef214e2fae5aae5c5e8d89d5b152b11b9be41a.tar.gz |
TST: Move nose plugin initialization outside of testing loop
It seems ok to let this warning show up, and it does not directly
relate to the test run itself, so moving it before setting up the
warnings for the actual tests (and printing out the system info,
so that it is not confused to originate in the actual tests).
-rw-r--r-- | numpy/testing/nosetester.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/testing/nosetester.py b/numpy/testing/nosetester.py index a9ab70fee..208b09640 100644 --- a/numpy/testing/nosetester.py +++ b/numpy/testing/nosetester.py @@ -389,6 +389,9 @@ class NoseTester(object): from . import utils utils.verbose = verbose + argv, plugins = self.prepare_test_args( + label, verbose, extra_argv, doctests, coverage, timer) + if doctests: print("Running unit tests and doctests for %s" % self.package_name) else: @@ -459,9 +462,6 @@ class NoseTester(object): from .noseclasses import NumpyTestProgram - argv, plugins = self.prepare_test_args( - label, verbose, extra_argv, doctests, coverage, timer) - t = NumpyTestProgram(argv=argv, exit=False, plugins=plugins) return t.result |