summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-01-02 09:40:53 -0600
committerBenjamin Peterson <benjamin@python.org>2015-01-02 09:40:53 -0600
commit0a7fff264df17e3982ae732e48b33d634fc4fa35 (patch)
tree11d06d4ab0ad8bc2c9ea8d1377ba735f555c71cb
parentb7673a05941b7c847224849cf5f6fd41d09aca8a (diff)
downloadsix-0a7fff264df17e3982ae732e48b33d634fc4fa35.tar.gz
assertRegex and assertRaisesRegex are 2.7+ only, too
-rw-r--r--test_six.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test_six.py b/test_six.py
index 4e95394..3a3faff 100644
--- a/test_six.py
+++ b/test_six.py
@@ -800,6 +800,7 @@ def test_assertCountEqual():
TestAssertCountEqual('test').test()
+@py.test.mark.skipif("sys.version_info[:2] < (2, 7)")
def test_assertRegex():
class TestAssertRegex(unittest.TestCase):
def test(self):
@@ -811,6 +812,7 @@ def test_assertRegex():
TestAssertRegex('test').test()
+@py.test.mark.skipif("sys.version_info[:2] < (2, 7)")
def test_assertRaisesRegex():
class TestAssertRaisesRegex(unittest.TestCase):
def test(self):