From 253c173a88f95ad3f5e5d83c8f28ec463823e5f8 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Wed, 6 Oct 2010 19:57:14 +0200 Subject: [PATCH] skip attribute tests on <(2,6) --HG-- branch : trunk --- testing/code/test_assertion.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testing/code/test_assertion.py b/testing/code/test_assertion.py index 2e8f4d644..0e37340ad 100644 --- a/testing/code/test_assertion.py +++ b/testing/code/test_assertion.py @@ -81,6 +81,8 @@ def test_is(): s = str(e) assert s.startswith("assert 1 is 2") + +@py.test.mark.skipif("sys.version_info < (2,6)") def test_attrib(): class Foo(object): b = 1 @@ -92,6 +94,7 @@ def test_attrib(): s = str(e) assert s.startswith("assert 1 == 2") +@py.test.mark.skipif("sys.version_info < (2,6)") def test_attrib_inst(): class Foo(object): b = 1