File increase_timeout_value.patch of Package python3-urllib3

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:
openSUSE Build Service is sponsored by