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:
Andreas Zuber
2021-03-17 11:58:41 +01:00
committed by Thomas Deutschmann
parent 4f58379931
commit 0c3e9e0342
2 changed files with 21 additions and 2 deletions

View 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)]
--

View File

@@ -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 )