Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-stack-data for 
openSUSE:Factory checked in at 2025-01-23 17:57:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-stack-data (Old)
 and      /work/SRC/openSUSE:Factory/.python-stack-data.new.5589 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-stack-data"

Thu Jan 23 17:57:09 2025 rev:10 rq:1239044 version:0.6.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-stack-data/python-stack-data.changes      
2023-11-28 22:19:20.701656558 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-stack-data.new.5589/python-stack-data.changes
    2025-01-23 18:01:13.257752543 +0100
@@ -1,0 +2,5 @@
+Mon Jan 20 13:14:44 UTC 2025 - Markéta Machová <[email protected]>
+
+- Add pygments.patch to fix non-skipped tests with Pygments 2.19
+
+-------------------------------------------------------------------

New:
----
  pygments.patch

BETA DEBUG BEGIN:
  New:
- Add pygments.patch to fix non-skipped tests with Pygments 2.19
BETA DEBUG END:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-stack-data.spec ++++++
--- /var/tmp/diff_new_pack.FIQDta/_old  2025-01-23 18:01:16.281877367 +0100
+++ /var/tmp/diff_new_pack.FIQDta/_new  2025-01-23 18:01:16.285877532 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-stack-data
 #
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2025 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -29,6 +29,8 @@
 BuildRequires:  %{python_module setuptools_scm >= 3.4.3}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+# PATCH-FIX-UPSTREAM https://github.com/alexmojaki/stack_data/pull/58 Modify 
test_executing_style_defs to work with Pygments 2.19
+Patch0:         pygments.patch
 Requires:       python-asttokens
 Requires:       python-executing
 Requires:       python-pure-eval
@@ -62,8 +64,8 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
-# incompatibility with Pygments
-%pytest -k 'not (test_pygments_example or test_example)'
+# incompatibility with even older Pygments
+%pytest -k 'not ((test_core and test_pygments_example) or (test_serializer and 
test_example))'
 
 %files %{python_files}
 %{python_sitelib}/stack_data

++++++ pygments.patch ++++++
Index: stack_data-0.6.3/tests/test_core.py
===================================================================
--- stack_data-0.6.3.orig/tests/test_core.py
+++ stack_data-0.6.3/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():

Reply via email to