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
1da14a3c
Commit
1da14a3c
authored
May 09, 2016
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1168 from kmod/reftests2
Fix the last two reffail tests
parents
183aa5f7
3beb6d11
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
13 additions
and
18 deletions
+13
-18
from_cpython/Include/classobject.h
from_cpython/Include/classobject.h
+1
-1
from_cpython/Lib/test/test_decimal.py
from_cpython/Lib/test/test_decimal.py
+1
-1
from_cpython/Lib/test/test_shelve.py
from_cpython/Lib/test/test_shelve.py
+0
-1
from_cpython/Lib/test/test_shutil.py
from_cpython/Lib/test/test_shutil.py
+0
-2
from_cpython/Lib/test/test_socket.py
from_cpython/Lib/test/test_socket.py
+0
-1
from_cpython/Modules/_elementtree.c
from_cpython/Modules/_elementtree.c
+5
-1
src/runtime/classobj.cpp
src/runtime/classobj.cpp
+2
-2
src/runtime/types.cpp
src/runtime/types.cpp
+3
-0
test/integration/decorator_test.py
test/integration/decorator_test.py
+0
-1
test/integration/pyinotify_test.py
test/integration/pyinotify_test.py
+0
-1
test/tests/class_freeing_time.py
test/tests/class_freeing_time.py
+0
-2
test/tests/deopt_namescope_tests.py
test/tests/deopt_namescope_tests.py
+1
-1
test/tests/deopt_tests.py
test/tests/deopt_tests.py
+0
-1
test/tests/elementree_test.py
test/tests/elementree_test.py
+0
-1
tools/tester.py
tools/tester.py
+0
-2
No files found.
from_cpython/Include/classobject.h
View file @
1da14a3c
...
...
@@ -81,7 +81,7 @@ PyAPI_FUNC(PyObject *) PyMethod_Class(PyObject *) PYSTON_NOEXCEPT;
* can't fail, never sets an exception, and NULL is not an error (it just
* means "not found").
*/
PyAPI_FUNC
(
PyObject
*
)
_PyInstance_Lookup
(
PyObject
*
pinst
,
PyObject
*
name
)
PYSTON_NOEXCEPT
;
PyAPI_FUNC
(
BORROWED
(
PyObject
*
)
)
_PyInstance_Lookup
(
PyObject
*
pinst
,
PyObject
*
name
)
PYSTON_NOEXCEPT
;
// Pyston change: no longer macros
#if 0
...
...
from_cpython/Lib/test/test_decimal.py
View file @
1da14a3c
# expected:
ref
fail
# expected: fail
# - takes too long
# Copyright (c) 2004 Python Software Foundation.
# All rights reserved.
...
...
from_cpython/Lib/test/test_shelve.py
View file @
1da14a3c
# expected: fail
import
os
import
unittest
import
shelve
...
...
from_cpython/Lib/test/test_shutil.py
View file @
1da14a3c
# expected: reffail
# - leaked refs, some test failures?
# Copyright (C) 2003 Python Software Foundation
import
unittest
...
...
from_cpython/Lib/test/test_socket.py
View file @
1da14a3c
# expected: fail
import
unittest
from
test
import
test_support
...
...
from_cpython/Modules/_elementtree.c
View file @
1da14a3c
...
...
@@ -3069,8 +3069,10 @@ init_elementtree(void)
);
if
(
!
PyRun_String
(
bootstrap
,
Py_file_input
,
g
,
NULL
))
PyObject
*
bootstrap_ret
;
if
(
!
(
bootstrap_ret
=
PyRun_String
(
bootstrap
,
Py_file_input
,
g
,
NULL
)))
return
;
Py_DECREF
(
bootstrap_ret
);
elementpath_obj
=
PyDict_GetItemString
(
g
,
"ElementPath"
);
...
...
@@ -3090,6 +3092,8 @@ init_elementtree(void)
elementtree_iter_obj
=
PyDict_GetItemString
(
g
,
"iter"
);
elementtree_itertext_obj
=
PyDict_GetItemString
(
g
,
"itertext"
);
Py_DECREF
(
g
);
#if defined(USE_PYEXPAT_CAPI)
/* link against pyexpat, if possible */
expat_capi
=
PyCapsule_Import
(
PyExpat_CAPSULE_NAME
,
0
);
...
...
src/runtime/classobj.cpp
View file @
1da14a3c
...
...
@@ -77,7 +77,7 @@ static BORROWED(Box*) classLookup(BoxedClassobj* cls, BoxedString* attr) {
return
classLookup
<
NOT_REWRITABLE
>
(
cls
,
attr
,
NULL
);
}
extern
"C"
PyObject
*
_PyInstance_Lookup
(
PyObject
*
pinst
,
PyObject
*
pname
)
noexcept
{
extern
"C"
BORROWED
(
PyObject
*
)
_PyInstance_Lookup
(
PyObject
*
pinst
,
PyObject
*
pname
)
noexcept
{
RELEASE_ASSERT
(
PyInstance_Check
(
pinst
),
""
);
BoxedInstance
*
inst
=
(
BoxedInstance
*
)
pinst
;
...
...
@@ -92,7 +92,7 @@ extern "C" PyObject* _PyInstance_Lookup(PyObject* pinst, PyObject* pname) noexce
Box
*
v
=
inst
->
getattr
(
name
);
if
(
v
==
NULL
)
v
=
classLookup
(
inst
->
inst_cls
,
name
);
return
xincref
(
v
)
;
return
v
;
}
catch
(
ExcInfo
e
)
{
setCAPIException
(
e
);
return
NULL
;
...
...
src/runtime/types.cpp
View file @
1da14a3c
...
...
@@ -4807,6 +4807,9 @@ extern "C" void Py_Finalize() noexcept {
call_sys_exitfunc
();
// initialized = 0;
PyType_ClearCache
();
PyGC_Collect
();
PyImport_Cleanup
();
#ifdef Py_REF_DEBUG
...
...
test/integration/decorator_test.py
View file @
1da14a3c
# expected: reffail
import
os
,
sys
sys
.
path
.
append
(
os
.
path
.
dirname
(
__file__
)
+
"/../lib"
)
...
...
test/integration/pyinotify_test.py
View file @
1da14a3c
# expected: reffail
import
os
import
sys
import
subprocess
...
...
test/tests/class_freeing_time.py
View file @
1da14a3c
# expected: fail
# - __del__ not supported
# probably need to have some gc collections going on as well
# Classes should be freed right away
...
...
test/tests/deopt_namescope_tests.py
View file @
1da14a3c
# expected: refstatfail
# skip-if: '-O' in EXTRA_JIT_ARGS
# expected: statfail
# statcheck: 4 <= noninit_count('num_deopt') < 50
# statcheck: 1 <= stats["num_osr_exits"] <= 2
...
...
test/tests/deopt_tests.py
View file @
1da14a3c
# expected: refstatfail
# skip-if: '-O' in EXTRA_JIT_ARGS
# statcheck: 4 <= noninit_count('num_deopt') < 50
# statcheck: 1 <= stats["num_osr_exits"] <= 2
...
...
test/tests/elementree_test.py
View file @
1da14a3c
# expected: reffail
# test is based on the cpython ElementTree doc
def
test
(
ET
):
xml_str
=
"""<?xml version="1.0"?>
...
...
tools/tester.py
View file @
1da14a3c
...
...
@@ -217,8 +217,6 @@ def get_test_options(fn, check_stats, run_memcheck):
if
opts
.
expected
==
"reffail"
:
opts
.
expected
=
"fail"
if
opts
.
expected
==
"refstatfail"
:
opts
.
expected
=
"statfail"
if
not
opts
.
skip
:
# consider other reasons for skipping file
...
...
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