We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd63c26 commit 5f0661bCopy full SHA for 5f0661b
extmod/uasyncio/task.py
@@ -151,7 +151,7 @@ def cancel(self):
151
return False
152
# Can't cancel self (not supported yet).
153
if self is core.cur_task:
154
- raise RuntimeError("cannot cancel self")
+ raise RuntimeError("can't cancel self")
155
# If Task waits on another task then forward the cancel to the one it's waiting on.
156
while isinstance(self.data, Task):
157
self = self.data
tests/extmod/uasyncio_cancel_self.py.exp
@@ -1,2 +1,2 @@
1
task start
2
-cannot cancel self
+can't cancel self
0 commit comments