Kaydet (Commit) dc089b6d authored tarafından Guido van Rossum's avatar Guido van Rossum

Fix test_openpty.

üst 93f3910d
......@@ -13,8 +13,8 @@ class OpenptyTest(unittest.TestCase):
if not os.isatty(slave):
self.fail("Slave-end of pty is not a terminal.")
os.write(slave, 'Ping!')
self.assertEqual(os.read(master, 1024), 'Ping!')
os.write(slave, b'Ping!')
self.assertEqual(os.read(master, 1024), b'Ping!')
def test_main():
run_unittest(OpenptyTest)
......
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