You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
python-rich/pygments-2.12.0-test-fix.patch

14 lines
449 B

diff --git a/tests/test_traceback.py b/tests/test_traceback.py
index 2830e26aa..03705f99c 100644
--- a/tests/test_traceback.py
+++ b/tests/test_traceback.py
@@ -277,7 +277,7 @@ def test_guess_lexer_yaml_j2():
something: {{ raiser() }}
else: {{ 5 + 5 }}
"""
- assert Traceback._guess_lexer("test.yaml.j2", code) == "text"
+ assert Traceback._guess_lexer("test.yaml.j2", code) in ("text", "YAML+Jinja")
def test_recursive():