mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/pygal: python 3.9 and tests fix
Closes: https://bugs.gentoo.org/738208 Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Andreas Zuber <a.zuber@gmx.ch> Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
This commit is contained in:
committed by
Thomas Deutschmann
parent
4f58379931
commit
0c3e9e0342
17
dev-python/pygal/files/2.4.0-fix-tests.patch
Normal file
17
dev-python/pygal/files/2.4.0-fix-tests.patch
Normal file
@@ -0,0 +1,17 @@
|
||||
diff --git a/pygal/test/conftest.py b/pygal/test/conftest.py
|
||||
index ea36010..6fe40cb 100644
|
||||
--- a/pygal/test/conftest.py
|
||||
+++ b/pygal/test/conftest.py
|
||||
@@ -48,9 +48,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", [[("Serie %d" % i, get_data(i)) for i in range(s)]
|
||||
for s in (5, 1, 0)]
|
||||
--
|
||||
@@ -1,8 +1,8 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
PYTHON_COMPAT=( python3_{7,8} )
|
||||
PYTHON_COMPAT=( python3_{7..9} )
|
||||
PYTHON_REQ_USE="xml(+)"
|
||||
|
||||
inherit distutils-r1
|
||||
@@ -29,6 +29,8 @@ BDEPEND="
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PV}-fix-tests.patch" )
|
||||
|
||||
# CHANGELOG is a symlink to docs/changelog.rst
|
||||
DOCS=( docs/changelog.rst README.md )
|
||||
|
||||
Reference in New Issue
Block a user