[Python-3000-checkins] r57678 - python/branches/py3k/Lib/test/test_pty.py

guido.van.rossum python-3000-checkins at python.org
Wed Aug 29 22:24:58 CEST 2007


Author: guido.van.rossum
Date: Wed Aug 29 22:24:57 2007
New Revision: 57678

Modified:
   python/branches/py3k/Lib/test/test_pty.py
Log:
Andother bytes/str comparison caught by Jeremy's change.


Modified: python/branches/py3k/Lib/test/test_pty.py
==============================================================================
--- python/branches/py3k/Lib/test/test_pty.py	(original)
+++ python/branches/py3k/Lib/test/test_pty.py	Wed Aug 29 22:24:57 2007
@@ -82,7 +82,7 @@
         fcntl.fcntl(master_fd, fcntl.F_SETFL, orig_flags | os.O_NONBLOCK)
         try:
             s1 = os.read(master_fd, 1024)
-            self.assertEquals('', s1)
+            self.assertEquals(b'', s1)
         except OSError as e:
             if e.errno != errno.EAGAIN:
                 raise


More information about the Python-3000-checkins mailing list