File: pygments-2.19-1.patch

package info (click to toggle)
python-stack-data 0.6.3-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 664 kB
  • sloc: python: 2,204; sh: 29; makefile: 2
file content (35 lines) | stat: -rw-r--r-- 1,489 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From: =?utf-8?b?TWFya8OpdGEgQ2Fsw6Fia292w6E=?= <meggy.calabkova@gmail.com>
Date: Mon, 20 Jan 2025 14:01:39 +0100
Subject: Modify test_executing_style_defs to work with Pygments 2.19

Origin: other, https://github.com/alexmojaki/stack_data/pull/63/commits/de1f8c910d75b56e512fc213e473f0d1b6ddfbac
Bug: https://github.com/alexmojaki/stack_data/issues/60
Last-Update: 2025-12-31
---
 tests/test_core.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/test_core.py b/tests/test_core.py
index b0ecdc2..cc06cb5 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -573,8 +573,8 @@ def test_absolute_filename():
     [
         r".c { color: #(999999|ababab); font-style: italic }",
         r".err { color: #a61717; background-color: #e3d2d2 }",
-        r".c-ExecutingNode { color: #(999999|ababab); font-style: italic; background-color: #ffff00 }",
-        r".err-ExecutingNode { color: #a61717; background-color: #ffff00 }",
+        r".c-ExecutingNode { color: #(999999|ababab); font-style: italic; background-color: #(ffff00|FF0) }",
+        r".err-ExecutingNode { color: #A61717; background-color: #(ffff00|FF0) }",
     ]
 )
 def test_executing_style_defs(expected):
@@ -582,7 +582,7 @@ def test_executing_style_defs(expected):
     formatter = HtmlFormatter(style=style)
     style_defs = formatter.get_style_defs()
 
-    assert re.search(expected, style_defs)
+    assert re.search(expected, style_defs, re.IGNORECASE)
 
 
 def test_example():