-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pytest.raises(AssertionError) fails with cython modules #176
Labels
type: bug
problem that needs to be addressed
Comments
Original comment by Ronny Pfannschmidt (BitBucket: RonnyPfannschmidt, GitHub: RonnyPfannschmidt): fix issue 176: raises(AssertionError) now catches builtin AssertionError as well |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Originally reported by: Jim Garrison (BitBucket: garrison, GitHub: garrison)
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:
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?
The text was updated successfully, but these errors were encountered: