commit | ad39aba2f67d3e7f4405f84167becab6d18ee9bc | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Tue Sep 25 16:21:39 2001 +0000 |
committer | Guido van Rossum <guido@python.org> | Tue Sep 25 16:21:39 2001 +0000 |
tree | 1fd61fe816bb595cb51963bd85da2670278ef6b6 | |
parent | 9081bb1d21b0a0f6812099e5f2207f28c7e1b944 [diff] |
Set sys.save_stdout (to sys.stdout), so doctest-using tests can be run standalone.
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."""