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:
parent
bd63c26dd5
commit
5f0661b4fe
@ -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
|
||||
|
@ -1,2 +1,2 @@
|
||||
task start
|
||||
cannot cancel self
|
||||
can't cancel self
|
||||
|
Loading…
Reference in New Issue
Block a user