-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
No substantive changes here, this is purely updating the patch files so they apply cleanly after upstream updates.
- Loading branch information
Showing
3 changed files
with
24 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
--- requests-2.12.4/tests/testserver/server.py 2016-12-21 11:31:56.000000000 -0800 | ||
+++ requests-2.12.4/tests/testserver/server.py.new 2016-12-30 10:40:06.085995065 -0800 | ||
@@ -27,7 +27,7 @@ | ||
"""Dummy server using for unit testing""" | ||
WAIT_EVENT_TIMEOUT = 5 | ||
|
||
- def __init__(self, handler=None, host='localhost', port=0, requests_to_handle=1, wait_to_close_event=None): | ||
+ def __init__(self, handler=None, host='127.0.0.1', port=0, requests_to_handle=1, wait_to_close_event=None): | ||
super(Server, self).__init__() | ||
|
||
self.handler = handler or consume_socket_content | ||
@@ -29,7 +29,7 @@ class Server(threading.Thread): | ||
def __init__( | ||
self, | ||
handler=None, | ||
- host="localhost", | ||
+ host="127.0.0.1", | ||
port=0, | ||
requests_to_handle=1, | ||
wait_to_close_event=None, |