Probably it's best to write the err stream to stderr.

This commit is contained in:
Jason R. Coombs 2018-02-17 12:13:33 -05:00
parent 254e357076
commit 4131d3f300
1 changed files with 1 additions and 1 deletions

View File

@ -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