From 5f0661b4fe6a68c38e9eecd94845f4bd1ed3046a Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 14 Apr 2020 21:51:25 +1000 Subject: [PATCH] extmod/uasyncio: Change cannot to can't in error message, and test exp. Follow up to 8e048d2548867aac743866ca5a4c244b7b5aac09 which missed these. --- extmod/uasyncio/task.py | 2 +- tests/extmod/uasyncio_cancel_self.py.exp | 2 +- 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