diff --git a/CHANGES b/CHANGES
index 563ddbfeecd..073d436d0cc 100644
--- a/CHANGES
+++ b/CHANGES
@@ -5,6 +5,7 @@ Dependencies
------------
* #11511: Drop Python 3.8 support.
+* #11576: Require Pygments 2.14 or later.
Incompatible changes
--------------------
diff --git a/pyproject.toml b/pyproject.toml
index cf90df95371..d927fa43dc2 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -61,7 +61,7 @@ dependencies = [
"sphinxcontrib-serializinghtml>=1.1.5",
"sphinxcontrib-qthelp",
"Jinja2>=3.0",
- "Pygments>=2.13",
+ "Pygments>=2.14",
"docutils>=0.18.1,<0.21",
"snowballstemmer>=2.0",
"babel>=2.9",
diff --git a/tests/test_ext_viewcode.py b/tests/test_ext_viewcode.py
index 74df2a4c566..a1a0a6d56b5 100644
--- a/tests/test_ext_viewcode.py
+++ b/tests/test_ext_viewcode.py
@@ -3,7 +3,6 @@
import re
import shutil
-import pygments
import pytest
@@ -34,10 +33,7 @@ def check_viewcode_output(app, warning):
'[docs]\n') in result
assert '@decorator\n' in result
assert 'class Class1:\n' in result
- if pygments.__version__ >= '2.14.0':
- assert ' """\n' in result
- else:
- assert ' """\n' in result
+ assert ' """\n' in result
assert ' this is Class1\n' in result
assert ' """\n' in result
diff --git a/tests/test_intl.py b/tests/test_intl.py
index 3acdc5d0b9b..a72492333f8 100644
--- a/tests/test_intl.py
+++ b/tests/test_intl.py
@@ -10,7 +10,6 @@
import time
from pathlib import Path
-import pygments
import pytest
from babel.messages import mofile, pofile
from babel.messages.catalog import Catalog
@@ -1170,8 +1169,6 @@ def test_additional_targets_should_not_be_translated(app):
"""in"""
""" """
"""list""")
- if pygments.__version__ < '2.14.0':
- expected_expr = expected_expr.replace(""" """, ' ')
assert_count(expected_expr, result, 1)
# doctest block should not be translated but be highlighted
@@ -1248,8 +1245,6 @@ def test_additional_targets_should_be_translated(app):
"""IN"""
""" """
"""LIST""")
- if pygments.__version__ < '2.14.0':
- expected_expr = expected_expr.replace(""" """, ' ')
assert_count(expected_expr, result, 1)
# doctest block should not be translated but be highlighted