Commits

holger krekel committed 1285692

skip attribute tests on <(2,6)

Comments (0)

Files changed (1)

testing/code/test_assertion.py

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