forked from pool/python-wsgi_intercept
- Added wsgi_intercept-disable-testbogusdomain.patch: Disable some tests
on 12.3 where patching fails OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wsgi_intercept?expand=0&rev=13
This commit is contained in:
committed by
Git OBS Bridge
parent
0bb3a993a4
commit
9504d16be1
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 30 16:44:30 UTC 2014 - speilicke@suse.com
|
||||||
|
|
||||||
|
- Added wsgi_intercept-disable-testbogusdomain.patch: Disable some tests
|
||||||
|
on 12.3 where patching fails
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jan 30 15:22:14 UTC 2014 - speilicke@suse.com
|
Thu Jan 30 15:22:14 UTC 2014 - speilicke@suse.com
|
||||||
|
|
||||||
|
@@ -24,6 +24,8 @@ License: MIT
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: http://code.google.com/p/wsgi-intercept/
|
Url: http://code.google.com/p/wsgi-intercept/
|
||||||
Source: http://pypi.python.org/packages/source/w/wsgi_intercept/wsgi_intercept-%{version}.tar.gz
|
Source: http://pypi.python.org/packages/source/w/wsgi_intercept/wsgi_intercept-%{version}.tar.gz
|
||||||
|
# PATCH-FIX-OPENSUSE speilicke@suse.com -- Patching fails
|
||||||
|
Patch0: wsgi_intercept-disable-testbogusdomain.patch
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: python-setuptools
|
||||||
# Test requirements:
|
# Test requirements:
|
||||||
@@ -48,6 +50,9 @@ can avoid spawning multiple processes or threads to test your Web app.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n wsgi_intercept-%{version}
|
%setup -q -n wsgi_intercept-%{version}
|
||||||
|
%if 0%{?suse_version} == 1230
|
||||||
|
%patch0 -p1
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
python setup.py build
|
||||||
|
16
wsgi_intercept-disable-testbogusdomain.patch
Normal file
16
wsgi_intercept-disable-testbogusdomain.patch
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
diff -ruN a/test/test_httplib2.py b/test/test_httplib2.py
|
||||||
|
--- a/test/test_httplib2.py 2013-11-05 21:55:09.000000000 +0100
|
||||||
|
+++ b/test/test_httplib2.py 2014-01-30 17:27:27.499618248 +0100
|
||||||
|
@@ -28,12 +28,6 @@
|
||||||
|
uninstall()
|
||||||
|
|
||||||
|
|
||||||
|
-def test_bogus_domain():
|
||||||
|
- install()
|
||||||
|
- py.test.raises(gaierror,
|
||||||
|
- 'httplib2_intercept.HTTP_WSGIInterceptorWithTimeout("_nonexistant_domain_").connect()')
|
||||||
|
- uninstall()
|
||||||
|
-
|
||||||
|
|
||||||
|
def test_https_success():
|
||||||
|
install(443)
|
Reference in New Issue
Block a user