forked from goodboy/tractor
Disable `pygments` highlighting on ctlc tests
parent
457499bc2e
commit
6f01c78122
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue