File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -101,8 +101,13 @@ def test_Bug_2543():
101
101
# This was not possible because validate_bool_maybe_none did not
102
102
# accept None as an argument.
103
103
# https://github.com/matplotlib/matplotlib/issues/2543
104
+ # We filter warnings at this stage since a number of them are raised
105
+ # for deprecated rcparams as they should. We dont want these in the
106
+ # printed in the test suite.
104
107
with warnings .catch_warnings ():
105
- warnings .filterwarnings ('ignore' , message = '.*(deprecated|obsolete)' , category = UserWarning )
108
+ warnings .filterwarnings ('ignore' ,
109
+ message = '.*(deprecated|obsolete)' ,
110
+ category = UserWarning )
106
111
with mpl .rc_context ():
107
112
_copy = mpl .rcParams .copy ()
108
113
for key in six .iterkeys (_copy ):
You can’t perform that action at this time.
0 commit comments