[py-dev] [hpk42/pytest] pytest.raises(AssertionError) fails with cython modules (issue #176)
issues-reply at bitbucket.org
Wed Aug 8 08:02:14 CEST 2012
--- you can reply above this line ---
New issue 176: pytest.raises(AssertionError) fails with cython modules
Define the files python_assert.py and cython_assert.pyx to be identical, each containing a simple function that raises AssertionError:
I would expect both of the following tests to succeed under pytest:
from python_assert import raise_assertionerror as python_assert
from cython_assert import raise_assertionerror as cython_assert
However, the cython test fails.
This seems to be a problem with pytest because the equivalent unittest succeeds.
Further, the pytest test succeeds if we call pytest.raises(Exception) instead of pytest.raises(AssertionError).
Any idea what is wrong?
This is an issue notification from bitbucket.org. You are receiving
this either because you are the owner of the issue, or you are
following the issue.
More information about the Pytest-dev