Open alphaCTzo7G opened 6 years ago
Couple of other observations:
pdb
instead of ipdb
.redirect_output
function doesn't seem to have anything to do with this error. even if I just run %cd D:/path/to/pkg
%reset -s -f
%run -m pytest -- --capture=fd pkg/tests/test_module.py::TestClass
I can still reproduce it.
This seems to be related to pytest. Did you ask that community ?
hmm... I see.. I thought it was something to do with ipdb
, because the same thing works fine when using pdb
.
So I had to start using pdb
when I wanted to capture the output.
I will ask the pytest
community as well..
I am getting this error when I try to insert a breakpoint with
ipdb
usingimport ipbd; ipdb.set_trace()
.When I remove the
import ipdb; ipdb.set_trace()
it seems the error goes away.The error happens pretty repeatably now by running it this way:
in Ipython:
where redirect_output is as follows (https://stackoverflow.com/a/14573397/4752883):
Can this be resolved, or any pointers to resovle this?