]> granicus.if.org Git - python/commitdiff
test_doctest fails since r59984.
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>
Tue, 15 Jan 2008 21:25:11 +0000 (21:25 +0000)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>
Tue, 15 Jan 2008 21:25:11 +0000 (21:25 +0000)
Not sure if these are the correct values, but save_stdout has to be set before its usage...

Lib/pdb.py

index e2ace87a403793e9a40e787efced517311251c8a..8da23d86fe44a3ff528c6d074bbe80a32188a262 100755 (executable)
@@ -199,6 +199,8 @@ class Pdb(bdb.Bdb, cmd.Cmd):
         globals = self.curframe.f_globals
         try:
             code = compile(line + '\n', '<stdin>', 'single')
+            save_stdout = sys.stdout
+            save_stdin = sys.stdin
             try:
                 sys.stdin = self.stdin
                 sys.stdout = self.stdout