Skip to content

Commit 282a8aa

Browse files
Update run.py
1 parent 2b18201 commit 282a8aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/idlelib/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def print_exception(in_test=False):
247247
if not in_test:
248248
efile = sys.stderr
249249
else:
250-
efile = io.StringIO()
250+
efile = io.StringIO() #If in test, anything mustn't be printed to sys.stderr
251251
typ, val, tb = excinfo = sys.exc_info()
252252
sys.last_type, sys.last_value, sys.last_traceback = excinfo
253253
sys.last_exc = val

0 commit comments

Comments
 (0)