diff --git a/CHANGES.rst b/CHANGES.rst index e689f0911..03b773d77 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -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. diff --git a/src/darker/tests/test_main.py b/src/darker/tests/test_main.py index 9cf890df1..52c4609a1 100644 --- a/src/darker/tests/test_main.py +++ b/src/darker/tests/test_main.py @@ -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