Created
October 23, 2018 10:19
-
-
Save chrisglass/894dd161e4de4204eafcb08297ca9aeb 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(): | |
with pytest.raises(BlahException) as blah: | |
do_something_that_raises() | |
with pytest.raises(BlahException) as blah: | |
do_something_that_raises() # This fails as if it didn't raise |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment