skip attribute tests on <(2,6)

--HG--
branch : trunk
This commit is contained in:
holger krekel 2010-10-06 19:57:14 +02:00
parent 7e3ff100f6
commit 253c173a88
1 changed files with 3 additions and 0 deletions

View File

@ -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