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
Make matplotlib.testing assume pytest by default, not nose.
Currently, matplotlib.testing generates nose-based tests (through the
deprecated ImageComparisonTest class and nose.SkipTest), unless one is
actually running tests with pytest (so that matplotlib.testing.conftest
has been run).
This means that e.g. importing `matplotlib.tests.test_foo` will fail if
nose is not installed (because we'll try to import nose.tools).
Given that both support for nose in Matplotlib and nose itself are
deprecated, invert the logic to generate pytest-base tests unless
both matplotlib.testing.conftest has *not* been run by pytest, and
"nose" is already in sys.modules.
Also change the default value of the "obj_type" parameter from
"attribute" to cbook.warn_deprecated to the empty string (the previous
default was never used, and the empty string as default is practical
e.g. in the case in this PR).
0 commit comments