14
0

Accepting request 307136 from home:benoit_monin:branches:devel:languages:python

- update to version 0.10.0
- refresh wsgi_intercept-disable-testbogusdomain.patch
- update project URL
- skip tests trying to access google.com with command line option

OBS-URL: https://build.opensuse.org/request/show/307136
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wsgi_intercept?expand=0&rev=17
This commit is contained in:
Jan Matejek
2015-05-18 13:37:34 +00:00
committed by Git OBS Bridge
parent 1f8576e361
commit 97192bfc42
5 changed files with 28 additions and 18 deletions

View File

@@ -1,3 +1,12 @@
-------------------------------------------------------------------
Thu May 14 14:50:24 UTC 2015 - benoit.monin@gmx.fr
- update to version 0.10.0:
* no changelog available
- refresh wsgi_intercept-disable-testbogusdomain.patch
- update project URL
- skip tests trying to access google.com with command line option
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Feb 5 11:02:07 UTC 2014 - speilicke@suse.com Wed Feb 5 11:02:07 UTC 2014 - speilicke@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-wsgi_intercept # spec file for package python-wsgi_intercept
# #
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -17,12 +17,12 @@
Name: python-wsgi_intercept Name: python-wsgi_intercept
Version: 0.6.1 Version: 0.10.0
Release: 0 Release: 0
Summary: Installs a WSGI application in place of a real URI for testing Summary: Installs a WSGI application in place of a real URI for testing
License: MIT License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
Url: http://code.google.com/p/wsgi-intercept/ Url: https://github.com/cdent/python3-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 # PATCH-FIX-OPENSUSE speilicke@suse.com -- Patching fails
Patch0: wsgi_intercept-disable-testbogusdomain.patch Patch0: wsgi_intercept-disable-testbogusdomain.patch
@@ -61,7 +61,8 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot}
rm -rf %{buildroot}%{python_sitelib}/test rm -rf %{buildroot}%{python_sitelib}/test
%check %check
py.test build/ # skip tests trying to access google.com
py.test -k "not not_intercepted" build/
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0f2eb4757c6cdefa4499aff4b6b080e223d416fa9c535634b2891e916ea45161
size 30017

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:656d6cea9c513e1a5db963d5210d579846cca166b47a3c4fcdd0633ce01516e9
size 9869

View File

@@ -1,16 +1,16 @@
diff -ruN a/test/test_httplib2.py b/test/test_httplib2.py --- wsgi_intercept-0.10.0.orig/test/test_httplib2.py
--- a/test/test_httplib2.py 2013-11-05 21:55:09.000000000 +0100 +++ wsgi_intercept-0.10.0/test/test_httplib2.py
+++ b/test/test_httplib2.py 2014-01-30 17:27:27.499618248 +0100 @@ -40,13 +40,6 @@ def test_http_other_port():
@@ -28,12 +28,6 @@ assert environ['wsgi.url_scheme'] == 'http'
uninstall()
-def test_bogus_domain(): -def test_bogus_domain():
- install() - with InstalledApp(wsgi_app.simple_app, host=HOST, port=80):
- py.test.raises(gaierror, - py.test.raises(
- gaierror,
- 'httplib2_intercept.HTTP_WSGIInterceptorWithTimeout("_nonexistant_domain_").connect()') - 'httplib2_intercept.HTTP_WSGIInterceptorWithTimeout("_nonexistant_domain_").connect()')
- uninstall()
- -
-
def test_https_success(): def test_https():
install(443) with InstalledApp(wsgi_app.simple_app, host=HOST, port=443) as app:
http = httplib2.Http()