Skip to content

Commit ff0f267

Browse files
committed
test_doctest fails since r59984.
Not sure if these are the correct values, but save_stdout has to be set before its usage...
1 parent e805782 commit ff0f267

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/pdb.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ def default(self, line):
199199
globals = self.curframe.f_globals
200200
try:
201201
code = compile(line + '\n', '<stdin>', 'single')
202+
save_stdout = sys.stdout
203+
save_stdin = sys.stdin
202204
try:
203205
sys.stdin = self.stdin
204206
sys.stdout = self.stdout

0 commit comments

Comments
 (0)