Skip to content

Instantly share code, notes, and snippets.

@blueyed
Created February 27, 2015 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blueyed/16fbd2c05049b7004e5f to your computer and use it in GitHub Desktop.
Save blueyed/16fbd2c05049b7004e5f to your computer and use it in GitHub Desktop.
diff -r fa62c5c63c2f testing/test_assertrewrite.py
--- a/testing/test_assertrewrite.py Mon Jan 19 22:34:43 2015 +0100
+++ b/testing/test_assertrewrite.py Fri Feb 27 19:11:10 2015 +0100
@@ -123,6 +123,13 @@
assert False, "something bad!"
assert getmsg(f) == "AssertionError: something bad!\nassert False"
+ def test_runpytest_ipdb(self, testdir):
+ testdir.makepyfile("""
+ def test_foo():
+ import ipdb; ipdb.set_trace()
+ """)
+ result = testdir.runpytest('')
+
def test_assertion_message(self, testdir):
testdir.makepyfile("""
def test_foo():
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment