Andother bytes/str comparison caught by Jeremy's change.

This commit is contained in:
Guido van Rossum 2007-08-29 20:24:57 +00:00
parent 9ff05b269f
commit f7f3deb702
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ class PtyTest(unittest.TestCase):
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