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 @@ -114,7 +114,7 @@ def context(style, after_reset=False):
114
114
try :
115
115
use (style )
116
116
except :
117
- # Restore original settings before raising any errors during the update.
117
+ # Restore original settings before raising errors during the update.
118
118
mpl .rcParams .update (initial_settings )
119
119
raise
120
120
else :
Original file line number Diff line number Diff line change @@ -121,8 +121,8 @@ def test_context_with_badparam():
121
121
if sys .version_info [:2 ] >= (2 , 7 ):
122
122
from collections import OrderedDict
123
123
else :
124
- msg = "Test can only be run in Python >= 2.7 as it requires OrderedDict"
125
- raise SkipTest (msg )
124
+ m = "Test can only be run in Python >= 2.7 as it requires OrderedDict"
125
+ raise SkipTest (m )
126
126
127
127
original_value = 'gray'
128
128
other_value = 'blue'
@@ -133,6 +133,7 @@ def test_context_with_badparam():
133
133
assert_raises (KeyError , x .__enter__ )
134
134
assert mpl .rcParams [PARAM ] == other_value
135
135
136
+
136
137
if __name__ == '__main__' :
137
138
from numpy import testing
138
139
testing .run_module_suite ()
You can’t perform that action at this time.
0 commit comments