Switch the test run from nose to pytest

Related: rhbz#1916787
This commit is contained in:
Christian Heimes 2021-06-17 08:44:26 +02:00
parent 1383d375dd
commit 6c1b29b8de

View File

@ -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 <cheimes@redhat.com> - 2.2.3-11
- Switch the test run from nose to pytest, related: rhbz#1916787
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.2.3-10
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937