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

Skip to content

Commit 0aa2fcd

Browse files
committed
TST : skip the fail tests on 2.6
1 parent a88f5dd commit 0aa2fcd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/tests/test_rcparams.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ def _validation_test_helper(validator, arg, target):
170170

171171

172172
def _validation_fail_helper(validator, arg, exception_type):
173+
if sys.version_info[:2] < (2, 7):
174+
raise nose.SkipTest("assert_raises as context manager not "
175+
"supported with Python < 2.7")
173176
with assert_raises(exception_type):
174177
validator(arg)
175178

0 commit comments

Comments
 (0)