File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -824,8 +824,9 @@ def __getitem__(self, key):
824
824
def __repr__ (self ):
825
825
class_name = self .__class__ .__name__
826
826
indent = len (class_name ) + 1
827
- repr_split = pprint .pformat (dict (self ), indent = 1 ,
828
- width = 80 - indent ).split ('\n ' )
827
+ with cbook ._suppress_matplotlib_deprecation_warning ():
828
+ repr_split = pprint .pformat (dict (self ), indent = 1 ,
829
+ width = 80 - indent ).split ('\n ' )
829
830
repr_indented = ('\n ' + ' ' * indent ).join (repr_split )
830
831
return '{}({})' .format (class_name , repr_indented )
831
832
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ def test_alias(equiv_styles):
145
145
rc_dicts = []
146
146
for sty in equiv_styles :
147
147
with style .context (sty ):
148
- rc_dicts .append (dict ( mpl .rcParams ))
148
+ rc_dicts .append (mpl .rcParams . copy ( ))
149
149
150
150
rc_base = rc_dicts [0 ]
151
151
for nm , rc in zip (equiv_styles [1 :], rc_dicts [1 :]):
You can’t perform that action at this time.
0 commit comments