mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
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:
parent
e805782b53
commit
ff0f2670ff
1 changed files with 2 additions and 0 deletions
|
|
@ -199,6 +199,8 @@ def default(self, line):
|
|||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue