File: 0002-Adopt-test-to-pygments-2.14-output.patch

package info (click to toggle)
python-stack-data 0.6.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 480 kB
  • sloc: python: 2,186; sh: 23; makefile: 2
file content (76 lines) | stat: -rw-r--r-- 4,515 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
From: Jochen Sprickerhof <jspricke@debian.org>
Date: Sat, 28 Jan 2023 08:10:20 +0100
Subject: Adopt test to pygments 2.14 output

---
 tests/test_core.py | 42 +++++++++++++++++++++---------------------
 1 file changed, 21 insertions(+), 21 deletions(-)

diff --git a/tests/test_core.py b/tests/test_core.py
index 52ad3ae..9124cd5 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -670,32 +670,32 @@ Terminal256Formatter <class \'stack_data.core.style_with_executing_node.<locals>
 
 TerminalFormatter native:
 
-  13 | \x1b[34mdef\x1b[39;49;00m \x1b[32mbar\x1b[39;49;00m():
-  14 |     x = \x1b[34m1\x1b[39;49;00m
-  15 |     \x1b[36mstr\x1b[39;49;00m(x)
-  17 |     \x1b[90m@deco\x1b[39;49;00m
-  18 |     \x1b[34mdef\x1b[39;49;00m \x1b[32mfoo\x1b[39;49;00m():
-  19 |         \x1b[34mpass\x1b[39;49;00m
+  13 | \x1b[34mdef\x1b[39;49;00m \x1b[32mbar\x1b[39;49;00m():\x1b[37m\x1b[39;49;00m
+  14 |     x = \x1b[34m1\x1b[39;49;00m\x1b[37m\x1b[39;49;00m
+  15 |     \x1b[36mstr\x1b[39;49;00m(x)\x1b[37m\x1b[39;49;00m
+  17 |     \x1b[90m@deco\x1b[39;49;00m\x1b[37m\x1b[39;49;00m
+  18 |     \x1b[34mdef\x1b[39;49;00m \x1b[32mfoo\x1b[39;49;00m():\x1b[37m\x1b[39;49;00m
+  19 |         \x1b[34mpass\x1b[39;49;00m\x1b[37m\x1b[39;49;00m
 -----
-  25 | \x1b[34mdef\x1b[39;49;00m \x1b[32mdeco\x1b[39;49;00m(f):
-  26 |     f.result = print_stack()
-  27 |     \x1b[34mreturn\x1b[39;49;00m f
+  25 | \x1b[34mdef\x1b[39;49;00m \x1b[32mdeco\x1b[39;49;00m(f):\x1b[37m\x1b[39;49;00m
+  26 |     f.result = print_stack()\x1b[37m\x1b[39;49;00m
+  27 |     \x1b[34mreturn\x1b[39;49;00m f\x1b[37m\x1b[39;49;00m
 -----
 
 ====================
 
 TerminalFormatter <class \'stack_data.core.style_with_executing_node.<locals>.NewStyle\'>:
 
-  13 | \x1b[34mdef\x1b[39;49;00m \x1b[32mbar\x1b[39;49;00m():
-  14 |     x = \x1b[34m1\x1b[39;49;00m
-  15 |     \x1b[36mstr\x1b[39;49;00m(x)
-  17 |     \x1b[90m@deco\x1b[39;49;00m
-  18 |     \x1b[34mdef\x1b[39;49;00m \x1b[32mfoo\x1b[39;49;00m():
-  19 |         \x1b[34mpass\x1b[39;49;00m
+  13 | \x1b[34mdef\x1b[39;49;00m \x1b[32mbar\x1b[39;49;00m():\x1b[37m\x1b[39;49;00m
+  14 |     x = \x1b[34m1\x1b[39;49;00m\x1b[37m\x1b[39;49;00m
+  15 |     \x1b[36mstr\x1b[39;49;00m(x)\x1b[37m\x1b[39;49;00m
+  17 |     \x1b[90m@deco\x1b[39;49;00m\x1b[37m\x1b[39;49;00m
+  18 |     \x1b[34mdef\x1b[39;49;00m \x1b[32mfoo\x1b[39;49;00m():\x1b[37m\x1b[39;49;00m
+  19 |         \x1b[34mpass\x1b[39;49;00m\x1b[37m\x1b[39;49;00m
 -----
-  25 | \x1b[34mdef\x1b[39;49;00m \x1b[32mdeco\x1b[39;49;00m(f):
-  26 |     f.result = print_stack()
-  27 |     \x1b[34mreturn\x1b[39;49;00m f
+  25 | \x1b[34mdef\x1b[39;49;00m \x1b[32mdeco\x1b[39;49;00m(f):\x1b[37m\x1b[39;49;00m
+  26 |     f.result = print_stack()\x1b[37m\x1b[39;49;00m
+  27 |     \x1b[34mreturn\x1b[39;49;00m f\x1b[37m\x1b[39;49;00m
 -----
 
 ====================
@@ -753,9 +753,9 @@ HtmlFormatter <class \'stack_data.core.style_with_executing_node.<locals>.NewSty
   13 | <span class="k">def</span> <span class="nf">bar</span><span class="p">():</span>
   14 |     <span class="n">x</span> <span class="o">=</span> <span class="mi">1</span>
   15 |     <span class="nb">str</span><span class="p">(</span><span class="n">x</span><span class="p">)</span>
-  17 | <span class=" -ExecutingNode">    </span><span class="nd nd-ExecutingNode">@deco</span><span class=" -ExecutingNode"></span>
-  18 | <span class=" -ExecutingNode">    </span><span class="k k-ExecutingNode">def</span><span class=" -ExecutingNode"> </span><span class="nf nf-ExecutingNode">foo</span><span class="p p-ExecutingNode">():</span><span class=" -ExecutingNode"></span>
-  19 | <span class=" -ExecutingNode">        </span><span class="k k-ExecutingNode">pass</span><span class=" -ExecutingNode"></span>
+  17 | <span class=" -ExecutingNode">    </span><span class="nd nd-ExecutingNode">@deco</span>
+  18 | <span class=" -ExecutingNode">    </span><span class="k k-ExecutingNode">def</span><span class=" -ExecutingNode"> </span><span class="nf nf-ExecutingNode">foo</span><span class="p p-ExecutingNode">():</span>
+  19 | <span class=" -ExecutingNode">        </span><span class="k k-ExecutingNode">pass</span>
 -----
   25 | <span class="k">def</span> <span class="nf">deco</span><span class="p">(</span><span class="n">f</span><span class="p">):</span>
   26 |     <span class="n">f</span><span class="o">.</span><span class="n">result</span> <span class="o">=</span> <span class="n n-ExecutingNode">print_stack</span><span class="p p-ExecutingNode">()</span>