Blame SOURCES/requests-2.12.4-tests_nonet.patch
|
|
69e05d |
--- requests-2.12.4/tests/testserver/server.py 2016-12-21 11:31:56.000000000 -0800
|
|
|
69e05d |
+++ requests-2.12.4/tests/testserver/server.py.new 2016-12-30 10:40:06.085995065 -0800
|
|
|
69e05d |
@@ -27,7 +27,7 @@
|
|
|
69e05d |
"""Dummy server using for unit testing"""
|
|
|
69e05d |
WAIT_EVENT_TIMEOUT = 5
|
|
|
69e05d |
|
|
|
69e05d |
- def __init__(self, handler=None, host='localhost', port=0, requests_to_handle=1, wait_to_close_event=None):
|
|
|
69e05d |
+ def __init__(self, handler=None, host='127.0.0.1', port=0, requests_to_handle=1, wait_to_close_event=None):
|
|
|
69e05d |
super(Server, self).__init__()
|
|
|
69e05d |
|
|
|
69e05d |
self.handler = handler or consume_socket_content
|