diff --git a/pytest8.patch b/pytest8.patch new file mode 100644 index 0000000..663f4e5 --- /dev/null +++ b/pytest8.patch @@ -0,0 +1,12 @@ +--- a/data_store/tests/test_utils.py ++++ b/data_store/tests/test_utils.py +@@ -10,7 +10,7 @@ + + class TestDataStore: + """Test the interface for the data sources""" +- def setup(self): ++ def setup_method(self): + self.data_path = Path(__file__).resolve().parent.parent / "data" + self.fname = "693_UNCI.dcm" + +Nur in b/pydicom-data-1.0.0: .pytest_cache. diff --git a/python-pydicom-data.changes b/python-pydicom-data.changes index 9b86faa..d8a5491 100644 --- a/python-pydicom-data.changes +++ b/python-pydicom-data.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Nov 22 12:21:03 UTC 2024 - Dirk Müller + +- add pytest8.patch + ------------------------------------------------------------------- Tue Jan 16 10:04:00 UTC 2024 - Axel Braun diff --git a/python-pydicom-data.spec b/python-pydicom-data.spec index 2a44298..01239ed 100644 --- a/python-pydicom-data.spec +++ b/python-pydicom-data.spec @@ -24,6 +24,7 @@ Summary: Test files for pydicom License: MIT URL: https://github.com/pydicom/pydicom-data/ Source: https://files.pythonhosted.org/packages/source/p/pydicom-data/pydicom-data-%{version}.tar.gz +Patch1: pytest8.patch BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} @@ -37,7 +38,7 @@ BuildArch: noarch Test files used by pydicom and other packages by the same organisation. %prep -%setup -q -n pydicom-data-%{version} +%autosetup -p1 -n pydicom-data-%{version} %build %pyproject_wheel @@ -47,7 +48,7 @@ Test files used by pydicom and other packages by the same organisation. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%pytest -rs +%pytest %files %{python_files} %{python_sitelib}/data_store