14
0

- 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:
Sascha Peilicke
2014-01-30 16:44:55 +00:00
committed by Git OBS Bridge
parent 0bb3a993a4
commit 9504d16be1
3 changed files with 27 additions and 0 deletions

View File

@@ -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

View File

@@ -24,6 +24,8 @@ License: MIT
Group: Development/Languages/Python
Url: http://code.google.com/p/wsgi-intercept/
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-setuptools
# Test requirements:
@@ -48,6 +50,9 @@ can avoid spawning multiple processes or threads to test your Web app.
%prep
%setup -q -n wsgi_intercept-%{version}
%if 0%{?suse_version} == 1230
%patch0 -p1
%endif
%build
python setup.py build

View 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)