Skip to content

Commit dcda989

Browse files
committed
Apply colored tracebacks on a wider scale
1 parent c37c860 commit dcda989

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

seleniumbase/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from seleniumbase.__version__ import __version__
1010
from seleniumbase.common import decorators # noqa
1111
from seleniumbase.common import encryption # noqa
12+
from seleniumbase.core import colored_traceback
1213
from seleniumbase.core.browser_launcher import get_driver # noqa
1314
from seleniumbase.fixtures import js_utils # noqa
1415
from seleniumbase.fixtures import page_actions # noqa
@@ -34,6 +35,7 @@
3435
pdb.DefaultConfig.enable_hidden_frames = False
3536
pdb.DefaultConfig.truncate_long_lines = True
3637
pdb.DefaultConfig.sticky_by_default = True
38+
colored_traceback.add_hook()
3739
if sys.version_info >= (3, 7):
3840
webdriver.TouchActions = None # Lifeline for past selenium-wire versions
3941
if sys.version_info >= (3, 10):

seleniumbase/plugins/sb_manager.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ def SB(
111111
from seleniumbase import BaseCase
112112
from seleniumbase import config as sb_config
113113
from seleniumbase.config import settings
114-
from seleniumbase.core import colored_traceback
115114
from seleniumbase.fixtures import constants
116115
from seleniumbase.fixtures import shared_utils
117116

@@ -770,7 +769,6 @@ def SB(
770769
sb.headless_active = False
771770
test_name = None
772771
terminal_width = shared_utils.get_terminal_width()
773-
colored_traceback.add_hook()
774772
if test:
775773
import colorama
776774
import os

0 commit comments

Comments
 (0)