Commit 829f6a95 authored by Boxiang Sun's avatar Boxiang Sun

enable test_cmath

parent c14215c5
# expected: fail
from test.test_support import run_unittest
from test.test_math import parse_testfile, test_file
from test.test_math import parse_testfile
import unittest
import os, sys
import cmath, math
from cmath import phase, polar, rect, pi
INF = float('inf')
NAN = float('nan')
# Pyston change: pull testcases file from source directory
# locate file with test values
if __name__ == '__main__':
file = sys.argv[0]
else:
file = __file__
test_dir = os.path.dirname(file) or os.curdir
test_file = os.path.join(test_dir, 'cmath_testcases.txt')
complex_zeros = [complex(x, y) for x in [0.0, -0.0] for y in [0.0, -0.0]]
complex_infinities = [complex(x, y) for x, y in [
(INF, 0.0), # 1st quadrant
......
......@@ -42,7 +42,6 @@ test_cfgparser [unknown]
test_cgi [unknown]
test_class needs ellipsis
test_cl [unknown]
test_cmath [unknown]
test_cmd_line_script [unknown]
test_cmd_line [unknown]
test_codecencodings_cn [unknown]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment