]> granicus.if.org Git - python/commitdiff
Fix test_openpty.
authorGuido van Rossum <guido@python.org>
Wed, 30 May 2007 00:58:53 +0000 (00:58 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 30 May 2007 00:58:53 +0000 (00:58 +0000)
Lib/test/test_openpty.py

index 6471f58ce514b6b501bab8e72eac40e4dcdc4633..cc9e907987389ae040a99f63ee997c2ba90c15e6 100644 (file)
@@ -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)