test: Capture Python asend behavior

This commit is contained in:
nightcityblade authored and nightcityblade committed 2026-08-28 23:52:32 +08:00
1 parent 1a51d4b5a0
commit f6ce659dbc
2 files changed
+12 -1

No files matched your search

@@ -3,3 +3,7 @@ import os
from numpy.typing import NDArray # should work
print(os.O_WRONLY) # should work
async def consume(generator):
await generator.asend(None) # should work
@@ -1,4 +1,11 @@
bin.name = "typos"
stdin = ""
stdout = ""
stdout = """
error: `asend` should be `ascend`
╭▸ ./sample.py:9:21
│
9 │ await generator.asend(None) # should work
╰╴ ━━━━━
"""
stderr = ""
status.code = 2