summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolay Kim <fafhrd91@gmail.com>2013-03-14 13:04:32 -0700
committerNikolay Kim <fafhrd91@gmail.com>2013-03-14 13:04:32 -0700
commit1f44bdc9a950c53583c3d95dfc2239c0ecbcf03c (patch)
treeba398c2ab7bb8bf2b099a901340b610f1f98e323
parente90eb2cb9975c18e2065f853f4ffed4e3250459f (diff)
downloadtrollius-git-1f44bdc9a950c53583c3d95dfc2239c0ecbcf03c.tar.gz
Fix events tests for Windows
-rw-r--r--tests/events_test.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/events_test.py b/tests/events_test.py
index cdad9bb..be8ccfe 100644
--- a/tests/events_test.py
+++ b/tests/events_test.py
@@ -124,7 +124,8 @@ class EventLoopTestsMixin:
# Run the test WSGI server in a separate thread in order not to
# interfere with event handling in the main thread
server_class = SSLWSGIServer if use_ssl else WSGIServer
- httpd = make_server('', 0, app, server_class, SilentWSGIRequestHandler)
+ httpd = make_server('127.0.0.1', 0, app,
+ server_class, SilentWSGIRequestHandler)
server_thread = threading.Thread(target=httpd.serve_forever)
server_thread.start()
try:
@@ -400,7 +401,7 @@ class EventLoopTestsMixin:
address = None
try:
s = socket.socket()
- s.bind(('', 0))
+ s.bind(('127.0.0.1', 0))
address = s.getsockname()
finally:
s.close()