Set sys.save_stdout (to sys.stdout), so doctest-using tests can be run

standalone.
This commit is contained in:
Guido van Rossum 2001-09-25 16:21:39 +00:00
parent 9081bb1d21
commit ad39aba2f6
1 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,8 @@
import sys
sys.save_stdout = sys.stdout
class Error(Exception):
"""Base class for regression test exceptions."""