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
2bdc8987
Commit
2bdc8987
authored
Jul 29, 2016
by
Boxiang Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some updates in test
parent
513bc9ba
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
9 deletions
+7
-9
from_cpython/Lib/test/test_sort.py
from_cpython/Lib/test/test_sort.py
+0
-1
test/CPYTHON_TEST_NOTES.md
test/CPYTHON_TEST_NOTES.md
+0
-1
test/tests/class_and_func_name.py
test/tests/class_and_func_name.py
+3
-3
test/tests/list.py
test/tests/list.py
+4
-0
test/tests/sort_cmp.py
test/tests/sort_cmp.py
+0
-4
No files found.
from_cpython/Lib/test/test_sort.py
View file @
2bdc8987
# expected: fail
from
test
import
test_support
from
test
import
test_support
import
random
import
random
import
sys
import
sys
...
...
test/CPYTHON_TEST_NOTES.md
View file @
2bdc8987
...
@@ -144,7 +144,6 @@ test_scope eval of code object from existing function (not currentl
...
@@ -144,7 +144,6 @@ test_scope eval of code object from existing function (not currentl
test_scriptpackages [unknown]
test_scriptpackages [unknown]
test_site [unknown]
test_site [unknown]
test_socket [unknown]
test_socket [unknown]
test_sort argument specification issue in listSort?
test_startfile [unknown]
test_startfile [unknown]
test_str memory leak?
test_str memory leak?
test_structmembers [unknown]
test_structmembers [unknown]
...
...
test/tests/class_and_func_name.py
View file @
2bdc8987
...
@@ -50,10 +50,10 @@ set_name(f, "b\0b")
...
@@ -50,10 +50,10 @@ set_name(f, "b\0b")
#del_name(f)
#del_name(f)
set_name
(
f
,
""
)
set_name
(
f
,
""
)
print
sorted
.
__name__
print
cmp
.
__name__
# should all fail:
# should all fail:
set_name
(
sorted
,
"blah"
)
set_name
(
cmp
,
"blah"
)
set_name
(
sorted
,
5
)
set_name
(
cmp
,
5
)
import
abc
import
abc
class
D
(
C
):
class
D
(
C
):
...
...
test/tests/list.py
View file @
2bdc8987
...
@@ -279,3 +279,7 @@ try:
...
@@ -279,3 +279,7 @@ try:
a
.
index
(
None
)
a
.
index
(
None
)
except
ValueError
as
e
:
except
ValueError
as
e
:
print
e
print
e
a_list
=
[(
0
,
0
,
0
),
(
1.0
,
2
,
0.0
),
(
1.0
,
3
,
0.0
)]
reverse_list
=
sorted
(
a_list
,
key
=
lambda
x
:
x
[
0
],
reverse
=
True
)
print
(
reverse_list
)
test/tests/sort_cmp.py
View file @
2bdc8987
# expected: fail
# - we don't support the cmp= keyword yet
# (apparently it's removed in Python 3)
printed
=
False
printed
=
False
def
mycmp
(
x
,
y
):
def
mycmp
(
x
,
y
):
global
printed
global
printed
...
...
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