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
ee912194
Commit
ee912194
authored
Sep 10, 2016
by
Kevin Modzelewski
Committed by
Kevin Modzelewski
Sep 12, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some minor improvements
parent
715ace3a
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
27 additions
and
8 deletions
+27
-8
from_cpython/CMakeLists.txt
from_cpython/CMakeLists.txt
+8
-0
from_cpython/Lib/test/script_helper.py
from_cpython/Lib/test/script_helper.py
+1
-2
from_cpython/Lib/test/test_lib2to3.py
from_cpython/Lib/test/test_lib2to3.py
+0
-1
from_cpython/Lib/test/test_support.py
from_cpython/Lib/test/test_support.py
+2
-1
from_cpython/Python/marshal.c
from_cpython/Python/marshal.c
+1
-1
src/runtime/types.cpp
src/runtime/types.cpp
+13
-0
test/CPYTHON_TEST_NOTES.md
test/CPYTHON_TEST_NOTES.md
+1
-2
tools/tester.py
tools/tester.py
+1
-1
No files found.
from_cpython/CMakeLists.txt
View file @
ee912194
# Copy any changed stdlib files to the destination:
file
(
GLOB_RECURSE STDLIB_SRCS Lib/*.py
)
file
(
GLOB STDLIB_MORE_SRCS Lib/lib2to3/*.txt
)
set
(
STDLIB_SRCS
${
STDLIB_MORE_SRCS
}
${
STDLIB_SRCS
}
)
file
(
GLOB STDLIB_MORE_SRCS Lib/email/test/data/*
)
set
(
STDLIB_SRCS
${
STDLIB_MORE_SRCS
}
${
STDLIB_SRCS
}
)
file
(
GLOB_RECURSE STD_INCLUDES Include/*.h
)
set
(
STDLIB_TARGETS
""
)
foreach
(
STDLIB_FILE
${
STDLIB_SRCS
}
)
...
...
@@ -181,6 +188,7 @@ add_custom_command(OUTPUT ${STDMODULES}
DEPENDS
pyston
copy_stdlib
setup.py
Modules/_multiprocessing/multiprocessing.c
Modules/_multiprocessing/semaphore.c
Modules/_multiprocessing/socket_connection.c
...
...
from_cpython/Lib/test/script_helper.py
View file @
ee912194
...
...
@@ -7,8 +7,7 @@ import re
import
os.path
import
tempfile
import
subprocess
# Pyston change: we can't import this currently
# import py_compile
import
py_compile
import
contextlib
import
shutil
try
:
...
...
from_cpython/Lib/test/test_lib2to3.py
View file @
ee912194
# expected: fail
# Skipping test_parser and test_all_fixers
# because of running
from
lib2to3.tests
import
(
test_fixers
,
test_pytree
,
test_util
,
test_refactor
,
...
...
from_cpython/Lib/test/test_support.py
View file @
ee912194
# expected: fail
# skip-if: True
# - this isn't an actual test file
"""Supporting definitions for the Python regression tests."""
if
__name__
!=
'test.test_support'
:
...
...
from_cpython/Python/marshal.c
View file @
ee912194
...
...
@@ -436,7 +436,7 @@ w_object(PyObject *v, WFILE *p)
}
else
if
(
PyCode_Check
(
v
))
{
// Pyston change: not implemented
assert
(
0
&&
"not implemented"
);
assert
(
0
&&
"
Marshalling of code objects
not implemented"
);
abort
();
/*
PyCodeObject *co = (PyCodeObject *)v;
...
...
src/runtime/types.cpp
View file @
ee912194
...
...
@@ -3477,10 +3477,23 @@ static int object_set_class(PyObject* self, PyObject* value, void* closure) noex
}
}
static
PyObject
*
object_sizeof
(
PyObject
*
self
,
PyObject
*
args
)
noexcept
{
Py_ssize_t
res
,
isize
;
res
=
0
;
isize
=
self
->
cls
->
tp_itemsize
;
if
(
isize
>
0
)
res
=
self
->
cls
->
ob_size
*
isize
;
res
+=
self
->
cls
->
tp_basicsize
;
return
PyInt_FromSsize_t
(
res
);
}
static
PyMethodDef
object_methods
[]
=
{
{
"__reduce_ex__"
,
object_reduce_ex
,
METH_VARARGS
,
NULL
},
//
{
"__reduce__"
,
object_reduce
,
METH_VARARGS
,
NULL
},
//
{
"__format__"
,
object_format
,
METH_VARARGS
,
PyDoc_STR
(
"default object formatter"
)
},
{
"__sizeof__"
,
object_sizeof
,
METH_NOARGS
,
PyDoc_STR
(
"__sizeof__() -> int
\n
size of object in memory, in bytes"
)
},
{
NULL
,
NULL
,
0
,
NULL
},
};
...
...
test/CPYTHON_TEST_NOTES.md
View file @
ee912194
...
...
@@ -101,8 +101,7 @@ test_iterlen [unknown]
test_itertools [unknown]
test_json 'from test.script_helper import assert_python_ok' fails; sounds like it is trying to look at pycs
test_kqueue Not really a failure, but it tries to skip itself and we don't support that
test_lib2to3 [unknown]
test_linuxaudiodev [unknown]
test_linuxaudiodev No module named audioop
test_list longs as slice indices
test_long_future [unknown]
test_macos Not really a failure, but it tries to skip itself and we don't support that
...
...
tools/tester.py
View file @
ee912194
...
...
@@ -573,7 +573,7 @@ def main(orig_dir):
filtered_tests.append(t)
tests = filtered_tests
if not tests:
print >>sys.stderr, "No tests matched the given patterns. OK by me!"
#
print >>sys.stderr, "No tests matched the given patterns. OK by me!"
# this can happen legitimately in e.g. `make check_test_foo` if test_foo.py is a CPython regression test.
sys.exit(0)
...
...
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