File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ def context(style, after_reset=False):
114114 try :
115115 use (style )
116116 except :
117- # Restore original settings before raising any errors during the update.
117+ # Restore original settings before raising errors during the update.
118118 mpl .rcParams .update (initial_settings )
119119 raise
120120 else :
Original file line number Diff line number Diff line change @@ -121,8 +121,8 @@ def test_context_with_badparam():
121121 if sys .version_info [:2 ] >= (2 , 7 ):
122122 from collections import OrderedDict
123123 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 )
126126
127127 original_value = 'gray'
128128 other_value = 'blue'
@@ -133,6 +133,7 @@ def test_context_with_badparam():
133133 assert_raises (KeyError , x .__enter__ )
134134 assert mpl .rcParams [PARAM ] == other_value
135135
136+
136137if __name__ == '__main__' :
137138 from numpy import testing
138139 testing .run_module_suite ()
You can’t perform that action at this time.
0 commit comments