File: 0001-Fix-test-failures-due-to-removed-attribute-in-pytest.patch

package info (click to toggle)
python-pygal 2.4.0-2.3
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 672 kB
  • sloc: python: 7,116; makefile: 9
file content (29 lines) | stat: -rw-r--r-- 950 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From 06d58181ff553e9b5c818256b379a336818b9a2f Mon Sep 17 00:00:00 2001
From: Julien Sanchez <julien.sanchez@kozea.fr>
Date: Mon, 12 Oct 2020 15:05:43 +0200
Subject: Fix test failures due to removed attribute in pytest

Replace removed `funcargnames` attribute with newer `fixturenames`.
---
 pygal/test/conftest.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pygal/test/conftest.py b/pygal/test/conftest.py
index b8c8a59..21e2801 100644
--- a/pygal/test/conftest.py
+++ b/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",
             [
-- 
2.20.1