Skip to content

Commit 8143be4

Browse files
authored
add eval file async900_trio (#376)
1 parent 2fdaff1 commit 8143be4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/eval_files/async900_trio.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import trio
2+
3+
# different error message & no as_safe_channel
4+
# NOANYIO
5+
# NOASYNCIO
6+
7+
8+
async def foo1(): # ASYNC900: 0, 'trio.as_safe_channel, contextlib.asynccontextmanager, pytest.fixture'
9+
yield
10+
yield
11+
12+
13+
@trio.as_safe_channel
14+
async def foo():
15+
yield

0 commit comments

Comments
 (0)