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
82894739
Commit
82894739
authored
Apr 07, 2016
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Workaround our generator-abandonment leak
parent
39770523
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
test/tests/generator_abandonment.py
test/tests/generator_abandonment.py
+3
-0
test/tests/weakref4.py
test/tests/weakref4.py
+2
-3
test/tests/weakrefs_extensions.py
test/tests/weakrefs_extensions.py
+1
-2
No files found.
test/tests/generator_abandonment.py
0 → 100644
View file @
82894739
# expected: reffail
print
any
(
i
==
5
for
i
in
xrange
(
10
))
test/tests/weakref4.py
View file @
82894739
# expected: reffail
import
weakref
def
doStuff
():
...
...
@@ -33,5 +32,5 @@ for i in xrange(5):
import
gc
gc
.
collect
()
assert
any
(
r
()
is
None
for
r
in
l2
),
"object was not collected"
assert
any
(
w
()
is
None
for
w
in
l1
),
"object was not collected"
assert
any
(
[
r
()
is
None
for
r
in
l2
]
),
"object was not collected"
assert
any
(
[
w
()
is
None
for
w
in
l1
]
),
"object was not collected"
test/tests/weakrefs_extensions.py
View file @
82894739
# expected: reffail
# Make sure we can support weakrefs on extension objects.
# The _sre.SRE_Pattern type is one of the few builtin types that supports weakrefs natively.
...
...
@@ -19,4 +18,4 @@ for i in xrange(5):
import
gc
gc
.
collect
()
assert
any
(
r
()
is
None
for
r
in
l
)
assert
any
(
[
r
()
is
None
for
r
in
l
]
)
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