diff options
author | Guido van Rossum <guido@python.org> | 2001-09-25 16:21:39 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-09-25 16:21:39 (GMT) |
commit | ad39aba2f67d3e7f4405f84167becab6d18ee9bc (patch) | |
tree | 1fd61fe816bb595cb51963bd85da2670278ef6b6 /Lib/test/test_support.py | |
parent | 9081bb1d21b0a0f6812099e5f2207f28c7e1b944 (diff) | |
download | cpython-ad39aba2f67d3e7f4405f84167becab6d18ee9bc.zip cpython-ad39aba2f67d3e7f4405f84167becab6d18ee9bc.tar.gz cpython-ad39aba2f67d3e7f4405f84167becab6d18ee9bc.tar.bz2 |
Set sys.save_stdout (to sys.stdout), so doctest-using tests can be run
standalone.
Diffstat (limited to 'Lib/test/test_support.py')
-rw-r--r-- | Lib/test/test_support.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index a9452fc..5a5e33c 100644 --- a/Lib/test/test_support.py +++ b/Lib/test/test_support.py @@ -2,6 +2,8 @@ import sys +sys.save_stdout = sys.stdout + class Error(Exception): """Base class for regression test exceptions.""" |