Skip to content

Commit

Permalink
Apply colored tracebacks on a wider scale
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmintz committed Jan 20, 2023
1 parent c37c860 commit dcda989
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions seleniumbase/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from seleniumbase.__version__ import __version__
from seleniumbase.common import decorators # noqa
from seleniumbase.common import encryption # noqa
from seleniumbase.core import colored_traceback
from seleniumbase.core.browser_launcher import get_driver # noqa
from seleniumbase.fixtures import js_utils # noqa
from seleniumbase.fixtures import page_actions # noqa
Expand All @@ -34,6 +35,7 @@
pdb.DefaultConfig.enable_hidden_frames = False
pdb.DefaultConfig.truncate_long_lines = True
pdb.DefaultConfig.sticky_by_default = True
colored_traceback.add_hook()
if sys.version_info >= (3, 7):
webdriver.TouchActions = None # Lifeline for past selenium-wire versions
if sys.version_info >= (3, 10):
Expand Down
2 changes: 0 additions & 2 deletions seleniumbase/plugins/sb_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ def SB(
from seleniumbase import BaseCase
from seleniumbase import config as sb_config
from seleniumbase.config import settings
from seleniumbase.core import colored_traceback
from seleniumbase.fixtures import constants
from seleniumbase.fixtures import shared_utils

Expand Down Expand Up @@ -770,7 +769,6 @@ def SB(
sb.headless_active = False
test_name = None
terminal_width = shared_utils.get_terminal_width()
colored_traceback.add_hook()
if test:
import colorama
import os
Expand Down

0 comments on commit dcda989

Please sign in to comment.