Skip to content

Commit 793bc05

Browse files
committed
uasyncio.core: Report unknown syscalls.
1 parent 2412519 commit 793bc05

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

uasyncio.core/uasyncio/core.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ def run_forever(self):
103103
self.remove_writer(arg.fileno())
104104
elif isinstance(ret, StopLoop):
105105
return arg
106+
else:
107+
assert False, "Unknown syscall yielded: %r (of type %r)" % (ret, type(ret))
106108
elif isinstance(ret, type_gen):
107109
self.call_soon(ret)
108110
elif isinstance(ret, int):

0 commit comments

Comments
 (0)