8000 Remove various Python 2.6 related workarounds by jenshnielsen · Pull Request #5373 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Remove various Python 2.6 related workarounds #5373

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Nov 5, 2015
Prev Previous commit
Next Next commit
Remove python 2.6 workaround in labeled data test
  • Loading branch information
jenshnielsen committed Oct 31, 2015
commit 44cebb9503b8445036af7a40697f1327398aaeef
15 changes: 4 additions & 11 deletions lib/matplotlib/tests/test_labeled_data_unpacking.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,10 @@
# 3.2+ versions
from nose.tools import assert_regex, assert_not_regex
except ImportError:
try:
# 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
except ImportError:
# 2.6 versions
def noop(txt, regex):
raise SkipTest("No assert for regex matching in py2.6")
assert_regex = noop
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

from ..testing import assert_produces_warning

Expand Down
0