test(cli): Show existing O_WRONLY behavior

This commit is contained in:
Ed Page 2023-09-25 12:46:00 -05:00
parent 66a70abc40
commit 9f1d7017e2
2 changed files with 13 additions and 1 deletions

View file

@ -1 +1,5 @@
import os
from numpy.typing import NDArray # should work
print(os.O_WRONLY) # should work

View file

@ -1,4 +1,12 @@
bin.name = "typos"
stdin = ""
stdout = ""
stdout = """
error: `WRONLY` should be `WRONGLY`
--> ./sample.py:5:12
|
5 | print(os.O_WRONLY) # should work
| ^^^^^^
|
"""
stderr = ""
status.code = 2