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
3
third_party/python/Lib/test/test_builtin.py
vendored
3
third_party/python/Lib/test/test_builtin.py
vendored
|
@ -2,6 +2,7 @@
|
|||
|
||||
import ast
|
||||
import builtins
|
||||
import _cosmo
|
||||
import collections
|
||||
import decimal
|
||||
import fractions
|
||||
|
@ -1028,6 +1029,8 @@ class BuiltinTest(unittest.TestCase):
|
|||
os.environ.clear()
|
||||
os.environ.update(old_environ)
|
||||
|
||||
@unittest.skipIf(_cosmo.MODE in ('tiny', 'rel'),
|
||||
"fails on missing .py file in rel omed")
|
||||
def test_open_non_inheritable(self):
|
||||
fileobj = open(__file__)
|
||||
with fileobj:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue