Accepting request 830076 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/830076
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pygal?expand=0&rev=6
This commit is contained in:
Dominique Leuenberger 2020-09-04 08:59:54 +00:00 committed by Git OBS Bridge
commit 452e10a95b
3 changed files with 23 additions and 1 deletions

16
pytest6.patch Normal file
View File

@ -0,0 +1,16 @@
Index: pygal-2.4.0/pygal/test/conftest.py
===================================================================
--- pygal-2.4.0.orig/pygal/test/conftest.py
+++ pygal-2.4.0/pygal/test/conftest.py
@@ -50,9 +50,9 @@ def pytest_generate_tests(metafunc):
if hasattr(sys, 'pypy_version_info'):
etree.to_etree()
- if "Chart" in metafunc.funcargnames:
+ if "Chart" in metafunc.fixturenames:
metafunc.parametrize("Chart", pygal.CHARTS)
- if "datas" in metafunc.funcargnames:
+ if "datas" in metafunc.fixturenames:
metafunc.parametrize(
"datas",
[

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Aug 27 15:15:44 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
- Add patch pytest6.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Nov 6 15:16:36 CET 2019 - Matej Cepl <mcepl@suse.com> Wed Nov 6 15:16:36 CET 2019 - Matej Cepl <mcepl@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-pygal # spec file for package python-pygal
# #
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2020 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
@ -30,6 +30,7 @@ Patch0: python38.patch
# PATCH-FIX-UPSTREAM pytest4.patch gh#Kozea/pygal#340 mcepl@suse.com # PATCH-FIX-UPSTREAM pytest4.patch gh#Kozea/pygal#340 mcepl@suse.com
# yes, THIS is what makes this test suite pytest4+ compatible! # yes, THIS is what makes this test suite pytest4+ compatible!
Patch1: pytest4.patch Patch1: pytest4.patch
Patch2: pytest6.patch
BuildRequires: %{python_module Flask} BuildRequires: %{python_module Flask}
BuildRequires: %{python_module lxml} BuildRequires: %{python_module lxml}
BuildRequires: %{python_module pyquery} BuildRequires: %{python_module pyquery}