Hello community, here is the log from the commit of package python3-urllib3 for openSUSE:Factory checked in at 2017-03-10 21:01:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python3-urllib3 (Old) and /work/SRC/openSUSE:Factory/.python3-urllib3.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python3-urllib3" Fri Mar 10 21:01:33 2017 rev:12 rq:477506 version:1.19.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python3-urllib3/python3-urllib3.changes 2017-02-19 00:59:07.679626661 +0100 +++ /work/SRC/openSUSE:Factory/.python3-urllib3.new/python3-urllib3.changes 2017-03-10 21:01:35.826570777 +0100 @@ -1,0 +2,7 @@ +Mon Feb 20 17:37:16 UTC 2017 - [email protected] + +- Add increase_timeout_value.patch to increase the value + of timeout values in tests so the package doesn't fail + to build when OBS is overloaded. + +------------------------------------------------------------------- New: ---- increase_timeout_value.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python3-urllib3.spec ++++++ --- /var/tmp/diff_new_pack.u2dQ80/_old 2017-03-10 21:01:36.522472162 +0100 +++ /var/tmp/diff_new_pack.u2dQ80/_new 2017-03-10 21:01:36.526471595 +0100 @@ -31,6 +31,8 @@ Patch2: urllib3-ssl-default-context.patch # PATCH-FIX-OPENSUSE -- do not use unsupported SSLv3 in tests Patch3: urllib3-test-ssl-drop-sslv3.patch +# PATCH-FIX-OPENSUSE -- increase the timeout values in tests so it doesn't fail to build on overloaded systems +Patch4: increase_timeout_value.patch BuildRequires: python3-devel BuildRequires: python3-setuptools # Test requirements: @@ -65,6 +67,7 @@ %if 0%{?suse_version} && 0%{?suse_version} > 1310 %patch3 -p1 %endif +%patch4 -p1 %build python3 setup.py build ++++++ increase_timeout_value.patch ++++++ Index: urllib3-1.19.1/test/with_dummyserver/test_socketlevel.py =================================================================== --- urllib3-1.19.1.orig/test/with_dummyserver/test_socketlevel.py +++ urllib3-1.19.1/test/with_dummyserver/test_socketlevel.py @@ -143,7 +143,7 @@ class TestSocketClosing(SocketDummyServe sock.close() self._start_server(socket_handler) - http = HTTPConnectionPool(self.host, self.port, timeout=0.001, retries=False, maxsize=3, block=True) + http = HTTPConnectionPool(self.host, self.port, timeout=0.1, retries=False, maxsize=3, block=True) try: self.assertRaises(ReadTimeoutError, http.request, 'GET', '/', release_conn=False) @@ -164,7 +164,7 @@ class TestSocketClosing(SocketDummyServe sock.close() self._start_server(socket_handler) - pool = HTTPSConnectionPool(self.host, self.port, timeout=0.001, retries=False) + pool = HTTPSConnectionPool(self.host, self.port, timeout=0.1, retries=False) try: self.assertRaises(ReadTimeoutError, pool.request, 'GET', '/') finally: @@ -202,7 +202,7 @@ class TestSocketClosing(SocketDummyServe try: self._start_server(socket_handler) - t = Timeout(connect=0.001, read=0.001) + t = Timeout(connect=0.1, read=0.1) pool = HTTPConnectionPool(self.host, self.port, timeout=t) response = pool.request('GET', '/', retries=1) @@ -357,7 +357,7 @@ class TestSocketClosing(SocketDummyServe with HTTPConnectionPool(self.host, self.port) as pool: poolsize = pool.pool.qsize() response = pool.urlopen('GET', '/', retries=0, preload_content=False, - timeout=Timeout(connect=1, read=0.001)) + timeout=Timeout(connect=1, read=0.1)) try: self.assertRaises(ReadTimeoutError, response.read) self.assertEqual(poolsize, pool.pool.qsize()) @@ -791,7 +791,7 @@ class TestSSL(SocketDummyServerTestCase) pool = HTTPSConnectionPool(self.host, self.port) response = pool.urlopen('GET', '/', retries=0, preload_content=False, - timeout=Timeout(connect=1, read=0.001)) + timeout=Timeout(connect=1, read=0.1)) try: self.assertRaises(ReadTimeoutError, response.read) finally:
