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
e6b7d6c0
Commit
e6b7d6c0
authored
Apr 15, 2016
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A few misc test updates / fixes
parent
d4831adb
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
9 additions
and
6 deletions
+9
-6
src/core/threading.cpp
src/core/threading.cpp
+2
-3
src/runtime/types.cpp
src/runtime/types.cpp
+4
-0
test/tests/dash_m.py
test/tests/dash_m.py
+1
-1
test/tests/decorated_func_line.py
test/tests/decorated_func_line.py
+1
-0
test/tests/exec_directory.py
test/tests/exec_directory.py
+1
-0
test/tests/sys_current_frames.py
test/tests/sys_current_frames.py
+0
-1
test/tests/unicode_test.py
test/tests/unicode_test.py
+0
-1
No files found.
src/core/threading.cpp
View file @
e6b7d6c0
...
...
@@ -678,15 +678,14 @@ extern "C" void PyThread_delete_key_value(int key) noexcept {
extern
"C"
PyObject
*
_PyThread_CurrentFrames
(
void
)
noexcept
{
assert
(
0
&&
"check refcounting"
);
try
{
LOCK_REGION
(
&
threading_lock
);
BoxedDict
*
result
=
new
BoxedDict
;
BoxedDict
*
result
=
new
BoxedDict
()
;
for
(
auto
&
pair
:
current_threads
)
{
FrameInfo
*
frame_info
=
(
FrameInfo
*
)
pair
.
second
->
public_thread_state
->
frame_info
;
Box
*
frame
=
getFrame
(
frame_info
);
assert
(
frame
);
result
->
d
[
boxInt
(
pair
.
first
)]
=
frame
;
PyDict_SetItem
(
result
,
autoDecref
(
boxInt
(
pair
.
first
)),
frame
)
;
}
return
result
;
}
catch
(
ExcInfo
)
{
...
...
src/runtime/types.cpp
View file @
e6b7d6c0
...
...
@@ -4836,6 +4836,10 @@ extern "C" void Py_Finalize() noexcept {
_PyUnicode_Fini
();
PyInterpreterState_Clear
(
PyThreadState_GET
()
->
interp
);
for
(
auto
b
:
constants
)
{
Py_DECREF
(
b
);
}
constants
.
clear
();
for
(
auto
b
:
late_constants
)
{
Py_DECREF
(
b
);
}
...
...
test/tests/dash_m.py
View file @
e6b7d6c0
# expected: reffail
# -
cleaning up a paused generator?
# -
generator abandonment
import
os
import
sys
import
subprocess
...
...
test/tests/decorated_func_line.py
View file @
e6b7d6c0
# expected: reffail
# - generator abandonment
def
wrapper
(
f
):
return
f
...
...
test/tests/exec_directory.py
View file @
e6b7d6c0
# expected: reffail
# - generator abandonment
import
sys
import
os
import
subprocess
...
...
test/tests/sys_current_frames.py
View file @
e6b7d6c0
# expected: reffail
# this is copied out of cpythons test_sys.py and adopted to use assert stmts
import
sys
import
thread
...
...
test/tests/unicode_test.py
View file @
e6b7d6c0
# expected: reffail
print
repr
(
unicode
())
print
repr
(
unicode
(
'hello world'
))
print
unicode
(
'hello world'
)
...
...
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