Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be2211e commit 1bfdc78Copy full SHA for 1bfdc78
1 file changed
Lib/test/test_socket.py
@@ -97,7 +97,7 @@ def missing_ok(str):
97
if not canfork or os.fork():
98
# parent is server
99
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
100
- s.bind((hostname, PORT))
+ s.bind(("127.0.0.1", PORT))
101
s.listen(1)
102
if verbose:
103
print 'parent accepting'
@@ -133,7 +133,7 @@ def missing_ok(str):
133
134
135
print 'child connecting'
136
- s.connect((hostname, PORT))
+ s.connect(("127.0.0.1", PORT))
137
msg = 'socket test'
138
s.send(msg)
139
data = s.recv(1024)
0 commit comments