We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b18201 commit 282a8aaCopy full SHA for 282a8aa
1 file changed
Lib/idlelib/run.py
@@ -247,7 +247,7 @@ def print_exception(in_test=False):
247
if not in_test:
248
efile = sys.stderr
249
else:
250
- efile = io.StringIO()
+ efile = io.StringIO() #If in test, anything mustn't be printed to sys.stderr
251
typ, val, tb = excinfo = sys.exc_info()
252
sys.last_type, sys.last_value, sys.last_traceback = excinfo
253
sys.last_exc = val
0 commit comments