File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1068,6 +1068,7 @@ def tk_window_focus():
10681068 'matplotlib.tests.test_mathtext' ,
10691069 'matplotlib.tests.test_mlab' ,
10701070 'matplotlib.tests.test_patches' ,
1071+ 'matplotlib.tests.test_rcparams' ,
10711072 'matplotlib.tests.test_simplification' ,
10721073 'matplotlib.tests.test_spines' ,
10731074 'matplotlib.tests.test_text' ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 44mpl .rc ('text' , usetex = False )
55mpl .rc ('lines' , linewidth = 22 )
66
7- fname = os .path .abspath (os .path .dirname (__file__ )) + os . sep + 'mpl .rc'
8-
7+ fname = os .path .join (os .path .dirname (__file__ ), 'test_rcparams .rc')
8+
99def test_rcparams ():
1010
1111 usetex = mpl .rcParams ['text.usetex' ]
@@ -27,8 +27,11 @@ def test_rcparams():
2727 assert mpl .rcParams ['lines.linewidth' ] == linewidth
2828
2929 # test rc_file
30- mpl .rc_file (fname )
31- assert mpl .rcParams ['lines.linewidth' ] == 33
30+ try :
31+ mpl .rc_file (fname )
32+ assert mpl .rcParams ['lines.linewidth' ] == 33
33+ finally :
34+ mpl .rcParams ['lines.linewidth' ] = linewidth
3235
3336
3437if __name__ == '__main__' :
Original file line number Diff line number Diff line change 1+ # this file is used by the tests in test_rcparams.py
2+
3+ lines.linewidth: 33
You can’t perform that action at this time.
0 commit comments