Add condition

epel9
Fabian Affolter 5 years ago
parent 016fb4db37
commit 4503ccc94b
No known key found for this signature in database
GPG Key ID: E23CD2DD36A4397F

@ -1,4 +1,5 @@
%global srcname msgpack %global srcname msgpack
%bcond_with tests
Name: python-%{srcname} Name: python-%{srcname}
Version: 1.0.0 Version: 1.0.0
@ -45,10 +46,12 @@ rm -rf test/test_timestamp.py
%install %install
%py3_install %py3_install
%if %{with network}
%check %check
PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v test \ PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v test \
-k "not test_unicode and not test_read_array_header and not test_partialdata \ -k "not test_unicode and not test_read_array_header and not test_partialdata \
and not test_read_map_header and not test_issue124" and not test_read_map_header and not test_issue124"
%endif
%files -n python%{python3_pkgversion}-%{srcname} %files -n python%{python3_pkgversion}-%{srcname}
%doc README.md %doc README.md

Loading…
Cancel
Save