You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
KnownFailure becomes an error with --processes=1 flag #6708
Nose version is 1.3.7. matplotlib._get_extra_test_plugins() returns what it should [matplotlib.testing.noseclasses.KnownFailure, nose.plugins.base.Plugin].
Hmm. According to this https://travis-ci.org/matplotlib/matplotlib/jobs/143332745--processes=$NPROC where NPROC=2. I think this bug is Windows related stuff because nose uses fork on Linux.
Is it specific to NPROC=1? In the medium term we probably want to switch from nose to pytest (hopefully before matplotlib 2.1) so if it only happens for NPROC=1 it might not be worth fixing it at this stage
No, it is not specific to --processes=1, it is the same for 2, 3, 4, etc. If --processes value is not 0 then nose uses multiprocess plugin and spawn workers (child processes) to perform tests. On my machine (Windows OS) the value of multiprocess._instantiate_plugins is not populated from the main thread to the child threads.
I have solved this issue this way: nose-devs/nose#1005
Is there anything I can help with in migration to pytest?
Work to migrate started in: #5405 but that rebase onto current master will not be fun.
https://github.com/astrofrog/pytest-mpl provides a replacement for the nose image test plugins, not sure how hard it would be too re-write our decorators to use that.
If you tackle this (which would be awesome) I would suggest starting from getting all of the tests to run under pytest before converting all of the assertions.
Activity
Kojoley commentedon Jul 8, 2016
It seems to be a bug in the
nose.This line does not help, every spawned child has the default
multiprocess._instantiate_plugins = Nonejenshnielsen commentedon Jul 8, 2016
Which version of nose are you using. This seems to be working correctly on travis. See https://github.com/matplotlib/matplotlib/blob/master/.travis.yml
what does
matplotlib._get_extra_test_plugins()return?Kojoley commentedon Jul 8, 2016
Nose version is 1.3.7.
matplotlib._get_extra_test_plugins()returns what it should[matplotlib.testing.noseclasses.KnownFailure, nose.plugins.base.Plugin].Hmm. According to this https://travis-ci.org/matplotlib/matplotlib/jobs/143332745
--processes=$NPROCwhereNPROC=2. I think this bug is Windows related stuff becausenoseusesforkon Linux.jenshnielsen commentedon Jul 9, 2016
Is it specific to
NPROC=1? In the medium term we probably want to switch from nose to pytest (hopefully before matplotlib 2.1) so if it only happens forNPROC=1it might not be worth fixing it at this stageKojoley commentedon Jul 9, 2016
No, it is not specific to
--processes=1, it is the same for 2, 3, 4, etc. If--processesvalue is not 0 then nose uses multiprocess plugin and spawn workers (child processes) to perform tests. On my machine (Windows OS) the value ofmultiprocess._instantiate_pluginsis not populated from the main thread to the child threads.I have solved this issue this way: nose-devs/nose#1005
Is there anything I can help with in migration to pytest?
tacaswell commentedon Jul 9, 2016
Work to migrate started in: #5405 but that rebase onto current master will not be fun.
https://github.com/astrofrog/pytest-mpl provides a replacement for the nose image test plugins, not sure how hard it would be too re-write our decorators to use that.
If you tackle this (which would be awesome) I would suggest starting from getting all of the tests to run under pytest before converting all of the assertions.
QuLogic commentedon Feb 14, 2017
We aren't using nose any more and parallel pytest seems to work in AppVeyor, so I'm going to close this.