mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 05:42:29 +00:00
Begin incorporating Python unit tests into build
We now build a separate APE binary for each test so they can run in parallel. We've got 148 tests running fast and stable so far.
This commit is contained in:
parent
51904e2687
commit
b5f743cdc3
121 changed files with 4995 additions and 4767 deletions
28
third_party/python/Lib/_pyio.py
vendored
28
third_party/python/Lib/_pyio.py
vendored
|
@ -19,33 +19,7 @@ else:
|
|||
_setmode = None
|
||||
|
||||
import io
|
||||
from io import (SEEK_SET, SEEK_CUR, SEEK_END)
|
||||
|
||||
__all__ = [
|
||||
'BlockingIOError',
|
||||
'BufferedIOBase',
|
||||
'BufferedRWPair',
|
||||
'BufferedRandom',
|
||||
'BufferedReader',
|
||||
'BufferedWriter',
|
||||
'BytesIO',
|
||||
'DEFAULT_BUFFER_SIZE',
|
||||
'FileIO',
|
||||
'IOBase',
|
||||
'IncrementalNewlineDecoder',
|
||||
'OpenWrapper',
|
||||
'RawIOBase',
|
||||
'SEEK_CUR',
|
||||
'SEEK_END',
|
||||
'SEEK_SET',
|
||||
'StringIO',
|
||||
'TextIOBase',
|
||||
'TextIOWrapper',
|
||||
'UnsupportedOperation',
|
||||
'_io',
|
||||
'abc',
|
||||
'open',
|
||||
]
|
||||
from io import (__all__, SEEK_SET, SEEK_CUR, SEEK_END)
|
||||
|
||||
valid_seek_flags = {0, 1, 2} # Hardwired values
|
||||
if hasattr(os, 'SEEK_HOLE') :
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue