From 277f81135b397685e552e553beb53f682bc04af8 Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Mon, 8 Feb 2021 19:55:12 +0100 Subject: [PATCH] Switch the test run from nose to pytest --- python-pid.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/python-pid.spec b/python-pid.spec index a1a80cd..c4da6f3 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: 9%{?dist} +Release: 10%{?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 +* Mon Feb 08 2021 Charalampos Stratakis - 2.2.3-10 +- Switch the test run from nose to pytest + * Wed Jan 27 2021 Fedora Release Engineering - 2.2.3-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild