File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1513,7 +1513,7 @@ def _get_extra_test_plugins():
1513
1513
from .testing .noseclasses import KnownFailure
1514
1514
from nose .plugins import attrib
1515
1515
1516
- return [KnownFailure () , attrib .Plugin () ]
1516
+ return [KnownFailure , attrib .Plugin ]
1517
1517
1518
1518
1519
1519
def test (verbosity = 1 ):
@@ -1532,7 +1532,7 @@ def test(verbosity=1):
1532
1532
plugins = _get_extra_test_plugins ()
1533
1533
plugins .extend ([plugin () for plugin in nose .plugins .builtin .plugins ])
1534
1534
1535
- manager = PluginManager (plugins = plugins )
1535
+ manager = PluginManager (plugins = [ x () for x in plugins ] )
1536
1536
config = nose .config .Config (verbosity = verbosity , plugins = manager )
1537
1537
1538
1538
# Nose doesn't automatically instantiate all of the plugins in the
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ def run(extra_args):
31
31
plugins = matplotlib ._get_extra_test_plugins ()
32
32
multiprocess ._instantiate_plugins = plugins
33
33
34
- nose .main (addplugins = plugins ,
34
+ nose .main (addplugins = [ x () for x in plugins ] ,
35
35
defaultTest = default_test_modules ,
36
36
argv = sys .argv + extra_args )
37
37
You can’t perform that action at this time.
0 commit comments