Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
829f6a95
Commit
829f6a95
authored
Dec 04, 2015
by
Boxiang Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable test_cmath
parent
c14215c5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
from_cpython/Lib/test/test_cmath.py
from_cpython/Lib/test/test_cmath.py
+11
-2
test/CPYTHON_TEST_NOTES.md
test/CPYTHON_TEST_NOTES.md
+0
-1
No files found.
from_cpython/Lib/test/test_cmath.py
View file @
829f6a95
# expected: fail
from
test.test_support
import
run_unittest
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
unittest
import
os
,
sys
import
cmath
,
math
import
cmath
,
math
from
cmath
import
phase
,
polar
,
rect
,
pi
from
cmath
import
phase
,
polar
,
rect
,
pi
INF
=
float
(
'inf'
)
INF
=
float
(
'inf'
)
NAN
=
float
(
'nan'
)
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_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
[
complex_infinities
=
[
complex
(
x
,
y
)
for
x
,
y
in
[
(
INF
,
0.0
),
# 1st quadrant
(
INF
,
0.0
),
# 1st quadrant
...
...
test/CPYTHON_TEST_NOTES.md
View file @
829f6a95
...
@@ -42,7 +42,6 @@ test_cfgparser [unknown]
...
@@ -42,7 +42,6 @@ test_cfgparser [unknown]
test_cgi [unknown]
test_cgi [unknown]
test_class needs ellipsis
test_class needs ellipsis
test_cl [unknown]
test_cl [unknown]
test_cmath [unknown]
test_cmd_line_script [unknown]
test_cmd_line_script [unknown]
test_cmd_line [unknown]
test_cmd_line [unknown]
test_codecencodings_cn [unknown]
test_codecencodings_cn [unknown]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment