[python-oauth2] disable tests again, they try to use the network

Tom Callaway spot at fedoraproject.org
Thu Feb 16 15:46:48 UTC 2012


commit 93565c59d2b8eed83d2406354c501ac272cfd8f5
Author: Tom Callaway <spot at fedoraproject.org>
Date:   Thu Feb 16 10:46:48 2012 -0500

    disable tests again, they try to use the network

 python-oauth2.spec |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/python-oauth2.spec b/python-oauth2.spec
index 6beeca6..e1f08fa 100644
--- a/python-oauth2.spec
+++ b/python-oauth2.spec
@@ -11,7 +11,8 @@ Patch0:			python-oauth2-multiple-GET-fix.patch
 URL:			http://pypi.python.org/pypi/oauth2/
 BuildArch:		noarch
 BuildRequires:		python-devel, python-setuptools, python-simplejson
-BuildRequires:		python-mock, python-httplib2, python-coverage
+# These are the test requires, but since we don't run the tests, we disable them here.
+# BuildRequires:	python-mock, python-httplib2, python-coverage
 Requires:		python-simplejson, python-httplib2
 
 %description
@@ -43,8 +44,9 @@ number of notable differences exist between this code and its forefathers:
 %{__python} setup.py install --skip-build --root %{buildroot}
 
 %check
-export PYTHONPATH=$RPM_BUILD_ROOT/%%{python_sitelib}
-%{__python} setup.py test
+# Tests try to access the network, which doesn't work in koji.
+# export PYTHONPATH=$RPM_BUILD_ROOT/%%{python_sitelib}
+# %{__python} setup.py test
 
 %files
 %doc PKG-INFO
@@ -56,7 +58,6 @@ export PYTHONPATH=$RPM_BUILD_ROOT/%%{python_sitelib}
 * Thu Feb 16 2012 Tom Callaway <spot at fedoraproject.org> - 1.5.211-1
 - update to 1.5.211
 - add multiple GET fix from Jason Connor (bz 784426)
-- add BR: python-mock and enable tests
 
 * Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.5.170-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild


More information about the scm-commits mailing list