Switch the test run from nose to pytest
This commit is contained in:
parent
68606a5411
commit
277f81135b
@ -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 <cstratak@redhat.com> - 2.2.3-10
|
||||
- Switch the test run from nose to pytest
|
||||
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.3-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user