Skip to content

Commit 46e2ee4

Browse files
committed
Set show_internal_console_if_traceback to True when DEV mode or testing is activated.
1 parent b9edcb0 commit 46e2ee4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: spyder/app/mainwindow.py

+5
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,11 @@ def signal_handler(signum, frame=None):
432432
if options.window_title is not None:
433433
title += ' -- ' + options.window_title
434434

435+
if DEV or DEBUG or PYTEST:
436+
# Show errors in internal console when developing or testing.
437+
CONF.set('main', 'show_internal_console_if_traceback', True)
438+
439+
435440
self.base_title = title
436441
self.update_window_title()
437442
resample = os.name != 'nt'

0 commit comments

Comments
 (0)