Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 948565 - dev-python/stack-data-0.6.3 fails tests: FAILED test_core.py::test_executing_style_defs[.c { color: (999999|ababab); font-style: italic }] - AssertionError: assert None
Summary: dev-python/stack-data-0.6.3 fails tests: FAILED test_core.py::test_executing_...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2025-01-22 08:50 UTC by Agostino Sarubbo
Modified: 2025-02-16 14:38 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,563.93 KB, text/plain)
2025-01-22 08:50 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2025-01-22 08:50:42 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-python/stack-data-0.6.3 fails tests.
Discovered on: x86 (internal ref: tinderbox_x86)
System: GCC-15-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#GCC-15)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0015
Comment 1 Agostino Sarubbo gentoo-dev 2025-01-22 08:50:43 UTC
Created attachment 917315 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2025-01-22 08:50:44 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


  13 | def bar():
  13 | def bar():
  13 | def bar():
  13 | def bar():
  13 | def bar():
  13 | def bar():
  13 | <span class="k">def</span> <span class="nf">bar</span><span class="p">():</span>
  13 | <span class="k">def</span><span class="w"> </span><span class="nf">bar</span><span class="p">():</span>
  14 |     x = 1
  14 |     x = 1
  14 |     <span class="n">x</span> <span class="o">=</span> <span class="mi">1</span>
  14 |     x = 1
  15 |     str(x)
  15 |     str(x)
  15 |     str(x)
  15 |     <span class="nb">str</span><span class="p">(</span><span class="n">x</span><span class="p">)</span>
  17 |     @deco
  17 |     @deco
  17 |     @deco
  17 |     @deco
  17 |     @deco
  17 |     <span class="nd">@deco</span>
  17 | <span class=" -ExecutingNode">    </span><span class="nd nd-ExecutingNode">@deco</span>
  18 |     def foo():
  18 |     def foo():
  18 |     def foo():
  18 |     def foo():
  18 |     def foo():
  18 |     def foo():
  18 |     def foo():
  18 |     def foo():
  18 |     def foo():
  18 |     def foo():
  18 |     <span class="k">def</span> <span class="nf">foo</span><span class="p">():</span>
  18 |     <span class="k">def</span><span class="w"> </span><span class="nf">foo</span><span class="p">():</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>
  18 | <span class=" -ExecutingNode">    </span><span class="k k-ExecutingNode">def</span><span class="w w-ExecutingNode"> </span><span class="nf nf-ExecutingNode">foo</span><span class="p p-ExecutingNode">():</span>
  19 |         pass
  19 |         pass
  19 |         pass
  19 |         pass
  19 |         pass
  19 |         <span class="k">pass</span>
  19 | <span class=" -ExecutingNode">        </span><span class="k k-ExecutingNode">pass</span>
  25 | def deco(f):
  25 | def deco(f):
  25 | def deco(f):
  25 | def deco(f):
  25 | def deco(f):
  25 | def deco(f):
  25 | <span class="k">def</span> <span class="nf">deco</span><span class="p">(</span><span class="n">f</span><span class="p">):</span>
  25 | <span class="k">def</span><span class="w"> </span><span class="nf">deco</span><span class="p">(</span><span class="n">f</span><span class="p">):</span>
  26 |     f.result = print_stack()
  26 |     f.result = print_stack()
  26 |     f.result = print_stack()
  26 |     f.result = print_stack()
  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>
  26 |     <span class="n">f</span><span class="o">.</span><span class="n">result</span> <span class="o">=</span> <span class="n">print_stack</span><span class="p">()</span>
  26 |     f.result = print_stack()
  27 |     return f
  27 |     return f
  27 |     return f
  27 |     <span class="k">return</span> <span class="n">f</span>
'
' == 'Terminal256Formatter native:
-----
====================
E       AssertionError: assert None
ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any
FAILED tests/test_core.py::test_executing_style_defs[.c { color: #(999999|ababab); font-style: italic }] - AssertionError: assert None
FAILED tests/test_core.py::test_executing_style_defs[.c-ExecutingNode { color: #(999999|ababab); font-style: italic; background-color: #ffff00 }] - AssertionError: assert None
FAILED tests/test_core.py::test_executing_style_defs[.err { color: #a61717; background-color: #e3d2d2 }] - AssertionError: assert None
FAILED tests/test_core.py::test_executing_style_defs[.err-ExecutingNode { color: #a61717; background-color: #ffff00 }] - AssertionError: assert None
FAILED tests/test_core.py::test_pygments_example - assert 'Terminal256Formatter native:
FAILED tests/test_serializer.py::test_example - AssertionError
HtmlFormatter <class \'stack_data.core.style_with_executing_node.<locals>.NewStyle\'>:
HtmlFormatter native:
Terminal256Formatter <class \'stack_data.core.style_with_executing_node.<locals>.NewStyle\'>:
TerminalFormatter <class \'stack_data.core.style_with_executing_node.<locals>.NewStyle\'>:
TerminalFormatter native:
TerminalTrueColorFormatter <class \'stack_data.core.style_with_executing_node.<locals>.NewStyle\'>:
TerminalTrueColorFormatter native:
tests/test_core.py::test_executing_style_defs[.c { color: #(999999|ababab); font-style: italic }] FAILED [10/20]
tests/test_core.py::test_executing_style_defs[.c-ExecutingNode { color: #(999999|ababab); font-style: italic; background-color: #ffff00 }] FAILED [12/20]
tests/test_core.py::test_executing_style_defs[.err { color: #a61717; background-color: #e3d2d2 }] FAILED [11/20]
tests/test_core.py::test_executing_style_defs[.err-ExecutingNode { color: #a61717; background-color: #ffff00 }] FAILED [13/20]
tests/test_core.py::test_pygments_example FAILED                        [15/20]
tests/test_serializer.py::test_example FAILED                           [17/20]
Comment 3 Jonathan Lovelace 2025-02-09 18:38:31 UTC
As in bug #949539, I notice that in at least some of these tests, the 'actual' text wraps spaces in '<span class="w">' tags that the 'expected' text doesn't.