[py-svn] py commit 33d061c0c279: super does not work with exceptions in python2.4
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Thu Nov 25 17:09:20 CET 2010
# HG changeset patch -- Bitbucket.org
# Project py
# URL http://bitbucket.org/hpk42/py/overview
# User holger krekel <holger at merlinux.eu>
# Date 1290701348 -3600
# Node ID 33d061c0c2790378ff0171022516ea2b2c9350ca
# Parent d8a7846892df17a93ad268f8c86c0c7e5f3fdb78
super does not work with exceptions in python2.4
--- a/testing/code/test_assertion.py
+++ b/testing/code/test_assertion.py
@@ -1,4 +1,4 @@
-import py
+import pytest, py
def exvalue():
return py.std.sys.exc_info()[1]
@@ -291,6 +291,7 @@ def test_assert_raise_alias(testdir):
])
+ at pytest.mark.skipif("sys.version_info < (2,5)")
def test_assert_raise_subclass():
class SomeEx(AssertionError):
def __init__(self, *args):
More information about the pytest-commit
mailing list