diff options
author | Guido van Rossum <guido@python.org> | 2007-05-30 00:58:53 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-05-30 00:58:53 (GMT) |
commit | dc089b6d0756074c966d680bd62276c09bbf80a5 (patch) | |
tree | 0fed2e907b76068ac5f37f8375a71182f6256bac /Lib | |
parent | 93f3910dca86a18b52e39df10a3a58a9e7819af2 (diff) | |
download | cpython-dc089b6d0756074c966d680bd62276c09bbf80a5.zip cpython-dc089b6d0756074c966d680bd62276c09bbf80a5.tar.gz cpython-dc089b6d0756074c966d680bd62276c09bbf80a5.tar.bz2 |
Fix test_openpty.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_openpty.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_openpty.py b/Lib/test/test_openpty.py index 6471f58..cc9e907 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) |