Skip to content

Commit 5f0661b

Browse files
committed
extmod/uasyncio: Change cannot to can't in error message, and test exp.
Follow up to 8e048d2 which missed these.
1 parent bd63c26 commit 5f0661b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

extmod/uasyncio/task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def cancel(self):
151151
return False
152152
# Can't cancel self (not supported yet).
153153
if self is core.cur_task:
154-
raise RuntimeError("cannot cancel self")
154+
raise RuntimeError("can't cancel self")
155155
# If Task waits on another task then forward the cancel to the one it's waiting on.
156156
while isinstance(self.data, Task):
157157
self = self.data
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
task start
2-
cannot cancel self
2+
can't cancel self

0 commit comments

Comments
 (0)