Skip to content

Instantly share code, notes, and snippets.

@jaraco
Created February 17, 2018 16:40
Show Gist options
  • Save jaraco/5752f7bef1b8fe80cbd0cbb339c2970d to your computer and use it in GitHub Desktop.
Save jaraco/5752f7bef1b8fe80cbd0cbb339c2970d to your computer and use it in GitHub Desktop.
$ cat > test_stuff.py
">>> 3\n3"
def test_stuff():
import pdb; pdb.set_trace()
$ ~/p/pytest/.tox/python/bin/pytest --capture=no
====================================== test session starts =======================================
platform darwin -- Python 3.6.4, pytest-3.4.1.dev34+gce1872e7.d20180213, py-1.5.2, pluggy-0.6.0
rootdir: /Users/jaraco/Dropbox/code/public/pytest, inifile: tox.ini
plugins: hypothesis-3.44.26
collected 1 item
test_stuff.py
>>>>>>>>>>>>>>>>>>>>>>>>>>>> PDB set_trace (IO-capturing turned off) >>>>>>>>>>>>>>>>>>>>>>>>>>>>>
--Return--
> /Users/jaraco/Dropbox/code/public/pytest/test/test_stuff.py(4)test_stuff()->None
-> import pdb; pdb.set_trace()
(Pdb) c
.
=================================== 1 passed in 18.57 seconds ====================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment