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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ff0f2670ff34e062e7c70af0381189e5752620a2;p=thirdparty%2FPython%2Fcpython.git 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 e2ace87a4037..8da23d86fe44 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