Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 962793b

Browse files
committed
TST : known fail more tests on 2.6
1 parent c93041c commit 962793b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/matplotlib/tests/test_rcparams.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ def test_RcParams_class():
105105

106106

107107
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")
108111
rc = mpl.RcParams({'figure.figsize': (3.5, 42)})
109112
bad_dict = {'figure.figsize': (3.5, 42, 1)}
110113
# make sure validation happens on input
@@ -113,6 +116,9 @@ def test_rcparams_update():
113116

114117

115118
def test_rcparams_init():
119+
if sys.version_info[:2] < (2, 7):
120+
raise nose.SkipTest("assert_raises as context manager "
121+
"not supported with Python < 2.7")
116122
with assert_raises(ValueError):
117123
mpl.RcParams({'figure.figsize': (3.5, 42, 1)})
118124

0 commit comments

Comments
 (0)