Created
October 23, 2018 10:21
-
-
Save chrisglass/4f59bc77cdc901258901f3c047637f85 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pytest | |
def test_something(): | |
# Notice how the "as blah" is missing | |
with pytest.raises(BlahException): | |
do_something_that_raises() | |
with pytest.raises(BlahException): | |
do_something_that_raises() # This succeeds as if it raised. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment