extmod/uasyncio: Change cannot to can't in error message, and test exp.

Follow up to 8e048d2548 which missed these.
This commit is contained in:
Damien George 2020-04-14 21:51:25 +10:00
parent bd63c26dd5
commit 5f0661b4fe
2 changed files with 2 additions and 2 deletions

View File

@ -151,7 +151,7 @@ class Task:
return False
# Can't cancel self (not supported yet).
if self is core.cur_task:
raise RuntimeError("cannot cancel self")
raise RuntimeError("can't cancel self")
# If Task waits on another task then forward the cancel to the one it's waiting on.
while isinstance(self.data, Task):
self = self.data

View File

@ -1,2 +1,2 @@
task start
cannot cancel self
can't cancel self