aboutsummaryrefslogtreecommitdiff
path: root/extmod/uasyncio
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2020-04-14 21:51:25 +1000
committerDamien George <damien.p.george@gmail.com>2020-04-14 21:51:25 +1000
commit5f0661b4fe6a68c38e9eecd94845f4bd1ed3046a (patch)
treee6bffe7a2efe0017fadc3545fa2855fd59731306 /extmod/uasyncio
parentbd63c26dd5560e1037fa06e79f99627de5772da5 (diff)
extmod/uasyncio: Change cannot to can't in error message, and test exp.
Follow up to 8e048d2548867aac743866ca5a4c244b7b5aac09 which missed these.
Diffstat (limited to 'extmod/uasyncio')
-rw-r--r--extmod/uasyncio/task.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/uasyncio/task.py b/extmod/uasyncio/task.py
index 1d5bcc5cf..1788cf0ed 100644
--- a/extmod/uasyncio/task.py
+++ b/extmod/uasyncio/task.py
@@ -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