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
c7808da7
Commit
c7808da7
authored
Mar 28, 2016
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get 'import gc' working
I guess a number of tests do this to help with testing
parent
7585d73e
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
2 additions
and
7 deletions
+2
-7
from_cpython/Modules/gcmodule.c
from_cpython/Modules/gcmodule.c
+2
-0
test/tests/closure_ics_test.py
test/tests/closure_ics_test.py
+0
-1
test/tests/file_destructor.py
test/tests/file_destructor.py
+0
-1
test/tests/finally_except.py
test/tests/finally_except.py
+0
-1
test/tests/select_test.py
test/tests/select_test.py
+0
-1
test/tests/testing_helpers.py
test/tests/testing_helpers.py
+0
-1
test/tests/weakref1.py
test/tests/weakref1.py
+0
-1
test/tests/weakref_ref_subclass.py
test/tests/weakref_ref_subclass.py
+0
-1
No files found.
from_cpython/Modules/gcmodule.c
View file @
c7808da7
...
...
@@ -1431,6 +1431,8 @@ initgc(void)
tmod
=
PyImport_ImportModuleNoBlock
(
"time"
);
if
(
tmod
==
NULL
)
PyErr_Clear
();
else
PyGC_RegisterStaticConstant
(
tmod
);
}
#define ADD_INT(NAME) if (PyModule_AddIntConstant(m, #NAME, NAME) < 0) return
...
...
test/tests/closure_ics_test.py
View file @
c7808da7
# expected: reffail
# Regression test: this triggers a bug in the way we guard for boxedfunctions and their closures.
# In particular, we guard on the specific value of a BoxedFunction to say that it is the same, but
# it's possible for the function to get destructed and then a new (and different) boxedfunction to
...
...
test/tests/file_destructor.py
View file @
c7808da7
# expected: reffail
import
gc
def
open_lots_of_files
():
...
...
test/tests/finally_except.py
View file @
c7808da7
# expected: reffail
# these may seem pointless, but they exercise a family of corner cases in our
# CFG generation pass (cfg.cpp).
def
returner
():
...
...
test/tests/select_test.py
View file @
c7808da7
# expected: reffail
import
gc
import
select
...
...
test/tests/testing_helpers.py
View file @
c7808da7
# expected: reffail
# This file isn't really meant to be run as a test, though it won't really
# make a difference.
...
...
test/tests/weakref1.py
View file @
c7808da7
# expected: reffail
import
weakref
import
gc
...
...
test/tests/weakref_ref_subclass.py
View file @
c7808da7
# expected: reffail
# Make sure we can subclass from weakref.ref, since the weakref module itself does this
from
weakref
import
ref
...
...
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