summaryrefslogtreecommitdiff
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
parentbd63c26dd5560e1037fa06e79f99627de5772da5 (diff)
extmod/uasyncio: Change cannot to can't in error message, and test exp.
Follow up to 8e048d2548867aac743866ca5a4c244b7b5aac09 which missed these.
-rw-r--r--extmod/uasyncio/task.py2
-rw-r--r--tests/extmod/uasyncio_cancel_self.py.exp2
2 files changed, 2 insertions, 2 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
diff --git a/tests/extmod/uasyncio_cancel_self.py.exp b/tests/extmod/uasyncio_cancel_self.py.exp
index 36fcb0a3f..a34c73460 100644
--- a/tests/extmod/uasyncio_cancel_self.py.exp
+++ b/tests/extmod/uasyncio_cancel_self.py.exp
@@ -1,2 +1,2 @@
task start
-cannot cancel self
+can't cancel self