Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c93041c commit 962793bCopy full SHA for 962793b
lib/matplotlib/tests/test_rcparams.py
@@ -105,6 +105,9 @@ def test_RcParams_class():
105
106
107
def test_rcparams_update():
108
+ if sys.version_info[:2] < (2, 7):
109
+ raise nose.SkipTest("assert_raises as context manager "
110
+ "not supported with Python < 2.7")
111
rc = mpl.RcParams({'figure.figsize': (3.5, 42)})
112
bad_dict = {'figure.figsize': (3.5, 42, 1)}
113
# make sure validation happens on input
@@ -113,6 +116,9 @@ def test_rcparams_update():
116
114
117
115
118
def test_rcparams_init():
119
120
121
122
with assert_raises(ValueError):
123
mpl.RcParams({'figure.figsize': (3.5, 42, 1)})
124
0 commit comments