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 aad5ad7 commit 44cebb9Copy full SHA for 44cebb9
1 file changed
lib/matplotlib/tests/test_labeled_data_unpacking.py
@@ -7,17 +7,10 @@
7
# 3.2+ versions
8
from nose.tools import assert_regex, assert_not_regex
9
except ImportError:
10
- try:
11
- # 2.7 versions
12
- from nose.tools import assert_regexp_matches, assert_not_regexp_matches
13
- assert_regex = assert_regexp_matches
14
- assert_not_regex = assert_not_regexp_matches
15
- except ImportError:
16
- # 2.6 versions
17
- def noop(txt, regex):
18
- raise SkipTest("No assert for regex matching in py2.6")
19
- assert_regex = noop
20
- assert_not_regex = noop
+ # 2.7 versions
+ from nose.tools import assert_regexp_matches, assert_not_regexp_matches
+ assert_regex = assert_regexp_matches
+ assert_not_regex = assert_not_regexp_matches
21
22
from ..testing import assert_produces_warning
23
0 commit comments