mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-113688: Split up gcmodule.c (gh-113715)
This splits part of Modules/gcmodule.c of into Python/gc.c, which now contains the core garbage collection implementation. The Python module remain in the Modules/gcmodule.c file.
This commit is contained in:
parent
0b7476080b
commit
99854ce170
9 changed files with 2032 additions and 1961 deletions
|
@ -1225,7 +1225,7 @@ class GCCallbackTests(unittest.TestCase):
|
|||
p.stderr.close()
|
||||
# Verify that stderr has a useful error message:
|
||||
self.assertRegex(stderr,
|
||||
br'gcmodule\.c:[0-9]+: gc_decref: Assertion "gc_get_refs\(g\) > 0" failed.')
|
||||
br'gc\.c:[0-9]+: gc_decref: Assertion "gc_get_refs\(g\) > 0" failed.')
|
||||
self.assertRegex(stderr,
|
||||
br'refcount is too small')
|
||||
# "address : 0x7fb5062efc18"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue