- Add pr-402-http20-enable-push-fix.patch from upstream to fix http20 connection initialisation - Improve fix-dependencies.patch removing upper constraints - Merge hyper executable into main package - Remove bcond test - Simplify test invocation - Add missing test dependency 'futures' on Python 2.7 - Update to version 0.7.0+git88.18b629b: * Add a fix to make it possible to add window_manager to HTTP20Adapter. * Add support for brotli compression * Fix crash on getting unsupported content-encoding * fix HTTP/1.1 response body length * fix HTTP/1.1 response body length * fix some error * Add test function for length of the HTTP/1.1 response-body. * fix HEAD request body length * fix test_release (http2bin to nghttp2.org/httpbin) - Initial spec for version 0.7.0+git88.18b629b, adding fix-test.patch to de-vendor the tests and fix-dependencies.patch to unpin dependencies OBS-URL: https://build.opensuse.org/request/show/689405 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hyper?expand=0&rev=1
35 lines
1.2 KiB
Diff
35 lines
1.2 KiB
Diff
commit 5525bd1607ed4af5db7e31c89357a54a8b222728
|
|
Author: John Vandenberg <jayvdb@gmail.com>
|
|
Date: Thu Mar 28 19:13:55 2019 +0700
|
|
|
|
Mark internet tests
|
|
|
|
diff --git a/test/test_http11.py b/test/test_http11.py
|
|
index 9f3fd3d..12e4360 100644
|
|
--- a/test/test_http11.py
|
|
+++ b/test/test_http11.py
|
|
@@ -544,6 +544,7 @@ class TestHTTP11Connection(object):
|
|
|
|
assert received == expected
|
|
|
|
+ @pytest.mark.rpmfail_getaddrinfo
|
|
def test_exception_raised_for_illegal_body_type(self):
|
|
c = HTTP11Connection('httpbin.org')
|
|
|
|
@@ -561,6 +562,7 @@ class TestHTTP11Connection(object):
|
|
'returning bytestrings or an iterable of bytestrings. ' \
|
|
'Got: {}'.format(type(body)) in str(exc_info)
|
|
|
|
+ @pytest.mark.rpmfail_getaddrinfo
|
|
def test_exception_raised_for_illegal_elements_in_iterable_body(self):
|
|
c = HTTP11Connection('httpbin.org')
|
|
|
|
@@ -580,6 +582,7 @@ class TestHTTP11Connection(object):
|
|
'element: {}'.format(rogue_element) \
|
|
in str(exc_info)
|
|
|
|
+ @pytest.mark.rpmfail_getaddrinfo
|
|
def test_exception_raised_for_filelike_body_not_returning_bytes(self):
|
|
c = HTTP11Connection('httpbin.org')
|
|
|