summaryrefslogtreecommitdiff
path: root/dev-python/pygal/files/pygal-2.4.0-fix-tests.patch
blob: 6ae07df3427b79a5c18b25b4ae1d237295d6d178 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)]
--