From: Amaury Forgeot d'Arc Date: Tue, 15 Jan 2008 21:25:11 +0000 (+0000) Subject: test_doctest fails since r59984. X-Git-Tag: v2.6a1~596 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ff0f2670ff34e062e7c70af0381189e5752620a2;p=python test_doctest fails since r59984. Not sure if these are the correct values, but save_stdout has to be set before its usage... --- diff --git a/Lib/pdb.py b/Lib/pdb.py index e2ace87a40..8da23d86fe 100755 --- a/Lib/pdb.py +++ b/Lib/pdb.py @@ -199,6 +199,8 @@ class Pdb(bdb.Bdb, cmd.Cmd): globals = self.curframe.f_globals try: code = compile(line + '\n', '', 'single') + save_stdout = sys.stdout + save_stdin = sys.stdin try: sys.stdin = self.stdin sys.stdout = self.stdout