File tree Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -1050,6 +1050,7 @@ def tk_window_focus():
1050
1050
'matplotlib.tests.test_dates' ,
1051
1051
'matplotlib.tests.test_spines' ,
1052
1052
'matplotlib.tests.test_image' ,
1053
+ 'matplotlib.tests.test_rcparams' ,
1053
1054
'matplotlib.tests.test_simplification' ,
1054
1055
'matplotlib.tests.test_mathtext' ,
1055
1056
'matplotlib.tests.test_text' ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 4
4
mpl .rc ('text' , usetex = False )
5
5
mpl .rc ('lines' , linewidth = 22 )
6
6
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
+
9
9
def test_rcparams ():
10
10
11
11
usetex = mpl .rcParams ['text.usetex' ]
@@ -27,8 +27,11 @@ def test_rcparams():
27
27
assert mpl .rcParams ['lines.linewidth' ] == linewidth
28
28
29
29
# 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
32
35
33
36
34
37
if __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