summaryrefslogtreecommitdiff
path: root/test_six.py
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
commit5f4063b7ce6844182dc666a626aca1708e329e35 (patch)
tree11d06d4ab0ad8bc2c9ea8d1377ba735f555c71cb /test_six.py
parenteb390a6ff1ad4c0d846b79f818a087fd917cf0c4 (diff)
downloadsix-git-5f4063b7ce6844182dc666a626aca1708e329e35.tar.gz
assertRegex and assertRaisesRegex are 2.7+ only, too
Diffstat (limited to 'test_six.py')
-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):