Commit 62360059 authored by Jason Madden's avatar Jason Madden

Fix test__example_portforwarder. text/binary issues.

parent 0688a69a
......@@ -35,12 +35,12 @@ class Test(util.TestServer):
server.start()
try:
conn = socket.create_connection(('127.0.0.1', 10011))
conn.sendall('msg1')
conn.sendall(b'msg1')
sleep(0.1)
self.popen.send_signal(15)
sleep(0.1)
try:
conn.sendall('msg2')
conn.sendall(b'msg2')
conn.close()
except socket.error:
if sys.platform != 'win32':
......@@ -55,9 +55,9 @@ class Test(util.TestServer):
server.close()
if sys.platform == 'win32':
self.assertEqual(['msg1'], log)
self.assertEqual([b'msg1'], log)
else:
self.assertEqual(['msg1', 'msg2'], log)
self.assertEqual([b'msg1', b'msg2'], log)
if __name__ == '__main__':
......
......@@ -91,7 +91,6 @@ test__pywsgi.py
test__makefile_ref.py
test__server_pywsgi.py
test__core_stat.py
test__example_portforwarder.py
FLAKY test__greenio.py
FLAKY test__socket_dns.py
'''.strip().split('\n')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment