systemd 245 + prompt_toolkit 1.0.x failing test_with_style
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start with tests/test_print_tokens.py and reproduce test_with_style on a system using systemd-245 and prompt_toolkit 1.0.x. Trace the generated terminal output against the expected escape sequence in the test. Done means the cause is addressed and the test suite no longer reports this failure.
Written by the indexing model from the issue text.
Description
on system with systemd-245 testsuite fails with:
[ 105s] _______________________________ test_with_style ________________________________
[ 105s]
[ 105s] def test_with_style():
[ 105s] f = _Capture()
[ 105s] style = style_from_dict({
[ 105s] Token.Hello: '#ff0066',
[ 105s] Token.World: '#44ff44 italic',
[ 105s] })
[ 105s] tokens = [
[ 105s] (Token.Hello, 'Hello '),
[ 105s] (Token.World, 'world'),
[ 105s] ]
[ 105s] print_tokens(tokens, style=style, file=f)
[ 105s] > assert b'\x1b[0;38;5;197mHello' in f.data
[ 105s] E AssertionError: assert '\x1b[0;38;5;197mHello' in '\x1b[0m\x1b[?7h\x1b[0;91mHello \x1b[0;92;3mworld\x1b[0m'
[ 105s] E + where '\x1b[0m\x1b[?7h\x1b[0;91mHello \x1b[0;92;3mworld\x1b[0m' = <test_print_tokens._Capture instance at 0x7f88f75a1aa0>.data
[ 105s]
[ 105s] tests/test_print_tokens.py:49: AssertionError
[ 105s] ==================== 1 failed, 101 passed in 29.52 seconds =====================
- Dominant language
- Python
- Stars
- 10.6k
- Forks
- 815
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from prompt-toolkit/python-prompt-toolkit
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
prompt-toolkit/python-prompt-toolkit#2073 · 2 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
prompt-toolkit/python-prompt-toolkit#1154 · 1 comment ·
All issues in prompt-toolkit/python-prompt-toolkit
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
zostera/django-bootstrap4#894 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
use-agent-os/agent-os#3276 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
zephyrproject-rtos/zephyr#119726 ·
-
area/auth bug comp/agent P3 platform/discord type/security
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
NousResearch/hermes-agent#117848 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
zilliztech/memsearch#759 ·