14
0
forked from pool/python-rpyc

Accepting request 811096 from home:mcalabkova:branches:devel:languages:python

- replace nose with pytest

OBS-URL: https://build.opensuse.org/request/show/811096
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rpyc?expand=0&rev=19
This commit is contained in:
Tomáš Chvátal
2020-06-03 12:53:49 +00:00
committed by Git OBS Bridge
parent e2b181ca8d
commit 205b5a1a64
2 changed files with 7 additions and 2 deletions

View File

@@ -42,8 +42,8 @@ Requires(postun): update-alternatives
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module gevent}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module plumbum >= 1.2}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module rpyc = %{version}}
%endif
%python_subpackages
@@ -76,7 +76,7 @@ mv %{buildroot}%{_bindir}/rpyc_registry.py %{buildroot}%{_bindir}/rpyc_registry
%if %{with test}
%check
%python_expand nosetests-%{$python_bin_suffix} -v -I test_deploy -I test_gevent_server -I test_ssh -I test_registry -I test_win32pipes
%pytest -k 'not (TestDeploy or Test_Ssh or TestUdpRegistry or win32pipes)'
%endif
%if !%{with test}