From 6c1b29b8de6f63590c893d2625a11a0bce50ae8c Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Thu, 17 Jun 2021 08:44:26 +0200 Subject: [PATCH] Switch the test run from nose to pytest Related: rhbz#1916787 --- python-pid.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/python-pid.spec b/python-pid.spec index 06dd868..08d11f3 100644 --- a/python-pid.spec +++ b/python-pid.spec @@ -26,7 +26,7 @@ PidFile can also be used as a context manager or a decorator.} Name: python-%{srcname} Version: 2.2.3 -Release: 10%{?dist} +Release: 11%{?dist} Summary: PID file management library License: ASL 2.0 @@ -63,7 +63,7 @@ Summary: %{summary} BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools %if %{with python3_tests} -BuildRequires: python%{python3_pkgversion}-nose >= 1.0 +BuildRequires: python%{python3_pkgversion}-pytest %endif %{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} @@ -98,7 +98,7 @@ rm -rf %{srcname}.egg-info PYTHONPATH=%{buildroot}%{python2_sitelib} nosetests-%{python2_version} --verbose %endif %if %{with python3_tests} -PYTHONPATH=%{buildroot}%{python3_sitelib} nosetests-%{python3_version} --verbose +%pytest %endif %if %{with python2} @@ -118,6 +118,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} nosetests-%{python3_version} --verbose %endif %changelog +* Thu Jun 17 2021 Christian Heimes - 2.2.3-11 +- Switch the test run from nose to pytest, related: rhbz#1916787 + * Fri Apr 16 2021 Mohan Boddu - 2.2.3-10 - Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937