Skip to content

Commit

Permalink
Fix test compatibility with Pygments 2.17.2
Browse files Browse the repository at this point in the history
  • Loading branch information
akaihola committed Mar 5, 2024
1 parent e630694 commit e2afd74
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/darker/tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,9 @@ def test_modify_file(tmp_path, new_content, expect):
f'{BLUE}print{RESET}({YELLOW}"{RESET}foo{YELLOW}"{RESET})\n',
# Pygments 2.14.0, variant 1:
f'{CYAN}print{RESET}({YELLOW}"{RESET}foo{YELLOW}"{RESET}){WHITE}{RESET}\n',
# Pygments 2.17.2
f'{CYAN}print{RESET}({YELLOW}"{RESET}{YELLOW}foo{RESET}{YELLOW}"{RESET})'
f'{WHITE}{RESET}\n',
),
),
)
Expand Down

0 comments on commit e2afd74

Please sign in to comment.