mirror of
https://github.com/crate-ci/typos.git
synced 2026-11-10 08:13:53 +01:00
test: Capture Python asend behavior
This commit is contained in:
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
|
||||
Reference in new issue
Block a user