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): ...@@ -35,12 +35,12 @@ class Test(util.TestServer):
server.start() server.start()
try: try:
conn = socket.create_connection(('127.0.0.1', 10011)) conn = socket.create_connection(('127.0.0.1', 10011))
conn.sendall('msg1') conn.sendall(b'msg1')
sleep(0.1) sleep(0.1)
self.popen.send_signal(15) self.popen.send_signal(15)
sleep(0.1) sleep(0.1)
try: try:
conn.sendall('msg2') conn.sendall(b'msg2')
conn.close() conn.close()
except socket.error: except socket.error:
if sys.platform != 'win32': if sys.platform != 'win32':
...@@ -55,9 +55,9 @@ class Test(util.TestServer): ...@@ -55,9 +55,9 @@ class Test(util.TestServer):
server.close() server.close()
if sys.platform == 'win32': if sys.platform == 'win32':
self.assertEqual(['msg1'], log) self.assertEqual([b'msg1'], log)
else: else:
self.assertEqual(['msg1', 'msg2'], log) self.assertEqual([b'msg1', b'msg2'], log)
if __name__ == '__main__': if __name__ == '__main__':
......
...@@ -91,7 +91,6 @@ test__pywsgi.py ...@@ -91,7 +91,6 @@ test__pywsgi.py
test__makefile_ref.py test__makefile_ref.py
test__server_pywsgi.py test__server_pywsgi.py
test__core_stat.py test__core_stat.py
test__example_portforwarder.py
FLAKY test__greenio.py FLAKY test__greenio.py
FLAKY test__socket_dns.py FLAKY test__socket_dns.py
'''.strip().split('\n') '''.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