Skip to content

Commit e82a3bd

Browse files
committed
also fix the async102 test
1 parent d454ebc commit e82a3bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/eval_files/async102.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,9 @@ async def foo():
100100
try:
101101
pass
102102
finally:
103+
# it's now fine to have a shield and no timeout
103104
with trio.CancelScope(shield=True):
104-
await foo() # error: 12, Statement("try/finally", lineno-4)
105+
await foo()
105106
try:
106107
pass
107108
finally:

0 commit comments

Comments
 (0)