[Python-3000-checkins] r55663 - python/branches/py3k-struni/Lib/test/test_openpty.py

guido.van.rossum python-3000-checkins at python.org
Wed May 30 02:58:56 CEST 2007


Author: guido.van.rossum
Date: Wed May 30 02:58:53 2007
New Revision: 55663

Modified:
   python/branches/py3k-struni/Lib/test/test_openpty.py
Log:
Fix test_openpty.


Modified: python/branches/py3k-struni/Lib/test/test_openpty.py
==============================================================================
--- python/branches/py3k-struni/Lib/test/test_openpty.py	(original)
+++ python/branches/py3k-struni/Lib/test/test_openpty.py	Wed May 30 02:58:53 2007
@@ -13,8 +13,8 @@
         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)


More information about the Python-3000-checkins mailing list