Disable `pygments` highlighting on ctlc tests

signint_saviour
Tyler Goodlet 2022-07-29 13:00:06 -04:00
parent 457499bc2e
commit 6f01c78122
2 changed files with 8 additions and 0 deletions

View File

@ -110,6 +110,13 @@ def ctlc(request) -> bool:
# be 3.10+ mega-asap.
pytest.skip('Py3.9 and `pdbpp` son no bueno..')
if use_ctlc:
# XXX: disable pygments highlighting for auto-tests
# since some envs (like actions CI) will struggle
# the the added color-char encoding..
from tractor._debug import TractorConfig
TractorConfig.use_pygements = False
yield use_ctlc

View File

@ -85,6 +85,7 @@ _debugger_request_cs: Optional[trio.CancelScope] = None
class TractorConfig(pdbpp.DefaultConfig):
"""Custom ``pdbpp`` goodness.
"""
use_pygments = True
# sticky_by_default = True
enable_hidden_frames = False