Accepting request 1239044 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1239044 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-stack-data?expand=0&rev=10
This commit is contained in:
commit
2404577f89
24
pygments.patch
Normal file
24
pygments.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
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():
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 20 13:14:44 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Add pygments.patch to fix non-skipped tests with Pygments 2.19
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Nov 27 16:11:39 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
Mon Nov 27 16:11:39 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-stack-data
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -29,6 +29,8 @@ BuildRequires: %{python_module setuptools >= 44}
|
|||||||
BuildRequires: %{python_module setuptools_scm >= 3.4.3}
|
BuildRequires: %{python_module setuptools_scm >= 3.4.3}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
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-asttokens
|
||||||
Requires: python-executing
|
Requires: python-executing
|
||||||
Requires: python-pure-eval
|
Requires: python-pure-eval
|
||||||
@ -62,8 +64,8 @@ Extract data from python stack frames and tracebacks for informative displays
|
|||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# incompatibility with Pygments
|
# incompatibility with even older Pygments
|
||||||
%pytest -k 'not (test_pygments_example or test_example)'
|
%pytest -k 'not ((test_core and test_pygments_example) or (test_serializer and test_example))'
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%{python_sitelib}/stack_data
|
%{python_sitelib}/stack_data
|
||||||
|
Loading…
x
Reference in New Issue
Block a user