mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +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
10
third_party/python/Lib/test/test_math.py
vendored
10
third_party/python/Lib/test/test_math.py
vendored
|
@ -22,14 +22,8 @@ FLOAT_MAX = sys.float_info.max
|
|||
x, y = 1e16, 2.9999 # use temporary values to defeat peephole optimizer
|
||||
HAVE_DOUBLE_ROUNDING = (x + y == 1e16 + 4)
|
||||
|
||||
# locate file with test values
|
||||
if __name__ == '__main__':
|
||||
file = sys.argv[0]
|
||||
else:
|
||||
file = __file__
|
||||
test_dir = os.path.dirname(file) or os.curdir
|
||||
math_testcases = os.path.join(test_dir, 'math_testcases.txt')
|
||||
test_file = os.path.join(test_dir, 'cmath_testcases.txt')
|
||||
math_testcases = '/zip/.python/test/math_testcases.txt'
|
||||
test_file = '/zip/.python/test/cmath_testcases.txt'
|
||||
|
||||
|
||||
def to_ulps(x):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue