From 085146a1444746ee4f23eb9b897cb392b2a6d9e2 Mon Sep 17 00:00:00 2001 From: Lumir Balhar Date: Nov 23 2022 09:38:08 +0000 Subject: Compatibility with pytest 7.2+ --- diff --git a/python-notario.spec b/python-notario.spec index c3ca4fa..40a2fda 100644 --- a/python-notario.spec +++ b/python-notario.spec @@ -29,6 +29,7 @@ representations of data being validated. %prep %autosetup -p1 -n %{srcname}-%{version} +sed -i "s/from py\.test/from pytest/" notario/tests/test_decorators.py notario/tests/test_regex.py %build %{py3_build} @@ -37,7 +38,7 @@ representations of data being validated. %py3_install %check -py.test-%{python3_version} -v notario/tests +pytest-%{python3_version} -v notario/tests %files -n python3-%{srcname} %doc README.rst