test_doctest fails since r59984.

Not sure if these are the correct values, but save_stdout has to be set before its usage...
This commit is contained in:
Amaury Forgeot d'Arc 2008-01-15 21:25:11 +00:00
parent e805782b53
commit ff0f2670ff
1 changed files with 2 additions and 0 deletions

View File

@ -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