New issue 689: Allow for pytester to not redirect stdio (ipdb.set_trace() etc) https://bitbucket.org/pytest-dev/pytest/issue/689/allow-for-pytester-to-not-redirect-stdio
Daniel Hahler: I would like to use `ipbd.set_trace()` (interactively) from a test, like this: ``` #!python def test_runpytest_ipdb(self, testdir): testdir.makepyfile(""" def test_foo(): import ipdb; ipdb.set_trace() """) result = testdir.runpytest('-s') ``` When running this test (using `py.test -s`), the test will "hang"; nothing gets displayed. You can interact with the debugger, and quit it using `Ctrl-d`. _______________________________________________ pytest-commit mailing list pytest-commit@python.org https://mail.python.org/mailman/listinfo/pytest-commit