From 52b543077360f42d4247f26f614edf32d51318ce Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Sun, 14 May 2017 13:46:01 -0400 Subject: [PATCH] Don't run tests when building as a module --- python-requests.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/python-requests.spec b/python-requests.spec index 59be994..4828fa7 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -11,7 +11,7 @@ Name: python-requests Version: 2.13.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: HTTP library, written in Python, for human beings License: ASL 2.0 @@ -157,12 +157,16 @@ ln -s ../../idna %{buildroot}/%{python2_sitelib}/requests/packages/idna %check +%if 0%{?_module_build} +# Don't run tests on module-build for now +# See: https://bugzilla.redhat.com/show_bug.cgi?id=1450608 PYTHONPATH=./ py.test %if 0%{?_with_python3} pushd %{py3dir} PYTHONPATH=./ py.test-%{python3_pkgversion} popd %endif +%endif #_module_build %files -n python2-requests @@ -184,6 +188,9 @@ popd %endif %changelog +* Sun May 14 2017 Stephen Gallagher - 2.13.0-2 +- Don't run tests when building as a module + * Thu Feb 09 2017 Jeremy Cline - 2.13.0-1 - Update to 2.13.0 (#1418138)