]> granicus.if.org Git - python/commit
Issue #12400: test.support.run_doctest() doesn't change sys.stdout anymore
authorVictor Stinner <victor.stinner@haypocalc.com>
Wed, 29 Jun 2011 13:53:11 +0000 (15:53 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Wed, 29 Jun 2011 13:53:11 +0000 (15:53 +0200)
commit05d34fc9533eb71052be2ecac3882d658cf6dd71
tree3cf06bc6519494d732c501293724994d0a2b159b
parentba089050624ccdff841a3eea88f0f13bfa0a437b
parentbddc4d4607a26603b2171f0663c506c8994e0a5b
Issue #12400: test.support.run_doctest() doesn't change sys.stdout anymore

regrtest doesn't check that tests doesn't write something to stdout anymore.

Don't replace sys.stdout by the original sys.stdout to be able to capture the
output for regrtest -W.
Lib/test/support.py