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