Kaydet (Commit) f7f3deb7 authored tarafından Guido van Rossum's avatar Guido van Rossum

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

üst 9ff05b26
...@@ -82,7 +82,7 @@ class PtyTest(unittest.TestCase): ...@@ -82,7 +82,7 @@ class PtyTest(unittest.TestCase):
fcntl.fcntl(master_fd, fcntl.F_SETFL, orig_flags | os.O_NONBLOCK) fcntl.fcntl(master_fd, fcntl.F_SETFL, orig_flags | os.O_NONBLOCK)
try: try:
s1 = os.read(master_fd, 1024) s1 = os.read(master_fd, 1024)
self.assertEquals('', s1) self.assertEquals(b'', s1)
except OSError as e: except OSError as e:
if e.errno != errno.EAGAIN: if e.errno != errno.EAGAIN:
raise raise
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment