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:
Sam Gross 2024-01-05 15:17:16 -05:00 committed by GitHub
parent 0b7476080b
commit 99854ce170
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 2032 additions and 1961 deletions

View file

@ -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"