From: Guido van Rossum Date: Wed, 30 May 2007 00:58:53 +0000 (+0000) Subject: Fix test_openpty. X-Git-Tag: v3.0a1~846 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dc089b6d0756074c966d680bd62276c09bbf80a5;p=python Fix test_openpty. --- diff --git a/Lib/test/test_openpty.py b/Lib/test/test_openpty.py index 6471f58ce5..cc9e907987 100644 --- a/Lib/test/test_openpty.py +++ b/Lib/test/test_openpty.py @@ -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)