From: Guido van Rossum Date: Tue, 25 Sep 2001 16:21:39 +0000 (+0000) Subject: Set sys.save_stdout (to sys.stdout), so doctest-using tests can be run X-Git-Tag: v2.2.1c1~1631 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ad39aba2f67d3e7f4405f84167becab6d18ee9bc;p=python 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 a9452fc904..5a5e33c773 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."""