Probably it's best to write the err stream to stderr.
This commit is contained in:
parent
254e357076
commit
4131d3f300
|
@ -118,7 +118,7 @@ class DoctestItem(pytest.Item):
|
|||
if capman:
|
||||
out, err = capman.suspend_global_capture(in_=True)
|
||||
sys.stdout.write(out)
|
||||
sys.stdout.write(err)
|
||||
sys.stderr.write(err)
|
||||
|
||||
def repr_failure(self, excinfo):
|
||||
import doctest
|
||||
|
|
Loading…
Reference in New Issue