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
14
third_party/python/Lib/test/test_sax.py
vendored
14
third_party/python/Lib/test/test_sax.py
vendored
|
@ -24,8 +24,18 @@ from urllib.error import URLError
|
|||
from test import support
|
||||
from test.support import findfile, run_unittest, TESTFN
|
||||
|
||||
TEST_XMLFILE = findfile("test.xml", subdir="xmltestdata")
|
||||
TEST_XMLFILE_OUT = findfile("test.xml.out", subdir="xmltestdata")
|
||||
from encodings import (
|
||||
utf_8_sig,
|
||||
utf_16,
|
||||
utf_16_be,
|
||||
utf_16_le,
|
||||
utf_32,
|
||||
utf_32_be,
|
||||
utf_32_le,
|
||||
)
|
||||
|
||||
TEST_XMLFILE = "/zip/.python/test/xmltestdata/test.xml"
|
||||
TEST_XMLFILE_OUT = "/zip/.python/test/xmltestdata/test.xml.out"
|
||||
try:
|
||||
TEST_XMLFILE.encode("utf-8")
|
||||
TEST_XMLFILE_OUT.encode("utf-8")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue