tests: poller_test 3.x fix.
This commit is contained in:
parent
6e1f9e2596
commit
5482b4d528
|
@ -43,7 +43,7 @@ class SockMixin(object):
|
|||
"""Make `fd` unwriteable."""
|
||||
while True:
|
||||
try:
|
||||
os.write(fd, 'x'*4096)
|
||||
os.write(fd, mitogen.core.b('x')*4096)
|
||||
except OSError:
|
||||
e = sys.exc_info()[1]
|
||||
if e.args[0] == errno.EAGAIN:
|
||||
|
|
Loading…
Reference in New Issue