Skip to content

Commit

Permalink
Fix compatibility with Pygments 2.4.0 in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
akaihola committed Mar 8, 2024
1 parent faa97bf commit 9151d3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Fixed
- Usage of the Black ``gen_python_files(gitignore_dict=...)`` parameter.
- ``show_capture`` option in Pytest configuration.
- Ignore some linter messages by recent versions of linters used in CI builds.
- Fix compatibility with Pygments 2.17.2 in unit tests.
- Fix compatibility with Pygments 2.4.0 and 2.17.2 in unit tests.
- Update `actions/checkout@v3` to `actions/checkout@v4` in CI builds.


Expand Down
1 change: 1 addition & 0 deletions src/darker/tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -917,6 +917,7 @@ def test_modify_file(tmp_path, new_content, expect):
f'{CYAN}print{RESET}({YELLOW}"{RESET}{YELLOW}foo{RESET}{YELLOW}"{RESET})\n',
# Pygments >=2.4.x, <2.14.0
f'{BLUE}print{RESET}({YELLOW}"{RESET}foo{YELLOW}"{RESET})\n',
f'{BLUE}print{RESET}({YELLOW}"{RESET}{YELLOW}foo{RESET}{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
Expand Down

0 comments on commit 9151d3c

Please sign in to comment.