diff --git a/0001-Adapt-tests-to-latest-pygments.patch b/0001-Adapt-tests-to-latest-pygments.patch new file mode 100644 index 0000000..e664961 --- /dev/null +++ b/0001-Adapt-tests-to-latest-pygments.patch @@ -0,0 +1,54 @@ +From 54e7ea7dc7a0986213975419a6ea6566e2102835 Mon Sep 17 00:00:00 2001 +From: Daniel Garcia Moreno +Date: Tue, 25 Feb 2025 14:35:23 +0100 +Subject: [PATCH] Adapt tests to latest pygments + +--- + tests/test_panels/test_sqla.py | 14 +++++++------- + 1 file changed, 7 insertions(+), 7 deletions(-) + +Index: pyramid_debugtoolbar-4.12.1/tests/test_panels/test_sqla.py +=================================================================== +--- pyramid_debugtoolbar-4.12.1.orig/tests/test_panels/test_sqla.py ++++ pyramid_debugtoolbar-4.12.1/tests/test_panels/test_sqla.py +@@ -77,9 +77,9 @@ class _TestSQLAlchemyPanel(_TestDebugtoo + + """ + self.assertIn( +- 'SELECT' +- ' ' +- 'NULL;', ++ 'SELECT' ++ ' ' ++ 'NULL;', + resp.text, + ) + +@@ -88,11 +88,11 @@ class _TestSQLAlchemyPanel(_TestDebugtoo + These are rendered as comments + """ + self.assertIn( +- '-- [event] begin', ++ '-- [event] begin', + resp.text, + ) + self.assertIn( +- '-- [event] rollback', ++ '-- [event] rollback', + resp.text, + ) + +@@ -101,11 +101,11 @@ class _TestSQLAlchemyPanel(_TestDebugtoo + These are rendered as comments + """ + self.assertIn( +- '-- [event] begin', ++ '-- [event] begin', + resp.text, + ) + self.assertIn( +- '-- [event] commit-- [event] commit + +- Add patch to fix tests with latest pyramid + 0001-Adapt-tests-to-latest-pygments.patch + ------------------------------------------------------------------- Fri Feb 9 21:57:03 UTC 2024 - Dirk Müller diff --git a/python-pyramid-debugtoolbar.spec b/python-pyramid-debugtoolbar.spec index fcf859d..3cc3df5 100644 --- a/python-pyramid-debugtoolbar.spec +++ b/python-pyramid-debugtoolbar.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyramid-debugtoolbar # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # Copyright (c) 2015 LISA GmbH, Bingen, Germany. # # All modifications and additions to the file contributed by third parties @@ -26,6 +26,8 @@ Summary: An interactive HTML debugger for Pyramid application development License: BSD-4-Clause AND ZPL-2.1 AND MIT URL: https://docs.pylonsproject.org Source: https://files.pythonhosted.org/packages/source/p/pyramid_debugtoolbar/pyramid_debugtoolbar-%{version}.tar.gz +# PATCH-FIX-UPSTREAM 0001-Adapt-tests-to-latest-pygments.patch gh#Pylons/pyramid_debugtoolbar#393 +Patch1: 0001-Adapt-tests-to-latest-pygments.patch BuildRequires: %{python_module Pygments} BuildRequires: %{python_module WebOb} BuildRequires: %{python_module WebTest} @@ -59,7 +61,7 @@ Summary: Documentation files for %{name} Documentation and examples for %{name}. %prep -%setup -q -n pyramid_debugtoolbar-%{version} +%autosetup -p1 -n pyramid_debugtoolbar-%{version} rm -r demo/.gitignore demo/debugtoolbar_demo.egg-info %build