mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
16 lines
211 B
Python
16 lines
211 B
Python
import os
|
|
|
|
assert os.open('README.md', 0) > 0
|
|
|
|
|
|
try:
|
|
os.open('DOES_NOT_EXIST', 0)
|
|
assert False
|
|
except FileNotFoundError:
|
|
pass
|
|
|
|
|
|
assert os.O_RDONLY == 0
|
|
assert os.O_WRONLY == 1
|
|
assert os.O_RDWR == 2
|