File tree 3 files changed +15
-7
lines changed
3 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -1247,6 +1247,7 @@ def test(verbosity=1):
1247
1247
import nose .plugins .builtin
1248
1248
from .testing .noseclasses import KnownFailure
1249
1249
from nose .plugins .manager import PluginManager
1250
+ from nose .plugins import multiprocess
1250
1251
1251
1252
# store the old values before overriding
1252
1253
plugins = []
@@ -1256,6 +1257,11 @@ def test(verbosity=1):
1256
1257
manager = PluginManager (plugins = plugins )
1257
1258
config = nose .config .Config (verbosity = verbosity , plugins = manager )
1258
1259
1260
+ # Nose doesn't automatically instantiate all of the plugins in the
1261
+ # child processes, so we have to provide the multiprocess plugin with
1262
+ # a list.
1263
+ multiprocess ._instantiate_plugins = [KnownFailure ]
1264
+
1259
1265
success = nose .run ( defaultTest = default_test_modules ,
1260
1266
config = config ,
1261
1267
)
Original file line number Diff line number Diff line change 229
229
# check for zip safety.
230
230
zip_safe = False ,
231
231
232
- # Install our nose plugin so it will always be found
233
- entry_points = {
234
- 'nose.plugins.0.10' : [
235
- 'KnownFailure = matplotlib.testing.noseclasses:KnownFailure'
236
- ]
237
- },
238
232
)
Original file line number Diff line number Diff line change 22
22
while not os .path .exists (font_manager ._fmcache ):
23
23
time .sleep (0.5 )
24
24
25
+ plugins = [KnownFailure ]
26
+
27
+ # Nose doesn't automatically instantiate all of the plugins in the
28
+ # child processes, so we have to provide the multiprocess plugin with
29
+ # a list.
30
+ from nose .plugins import multiprocess
31
+ multiprocess ._instantiate_plugins = plugins
32
+
25
33
def run ():
26
- nose .main (addplugins = [KnownFailure () ],
34
+ nose .main (addplugins = [x () for x in plugins ],
27
35
defaultTest = default_test_modules )
28
36
29
37
if __name__ == '__main__' :
You can’t perform that action at this time.
0 commit comments