]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
try not to rely on GC working at all for tests
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 28 Oct 2025 20:20:54 +0000 (16:20 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 28 Oct 2025 20:54:58 +0000 (16:54 -0400)
commit368f5ac6668456609cf5f862c0676108cef4bec8
tree90e623f89b9cb21541c35ea2759f82e3eb90e421
parent93968e2c9e0796a4ea2fc13582b2eec83371f008
try not to rely on GC working at all for tests

GC seems to be working in fewer cases across different interpreters,
so add a new step to force an InstanceState to act as though
it got dereferenced, for those cases where we have del'ed the object,
done a gc collect, and we know it should not be reachable.

Change-Id: Ie97af1d5739f8d5a24aabe1296f14ce99ec1b0e5
lib/sqlalchemy/orm/state.py
test/aaa_profiling/test_memusage.py
test/orm/test_hasparent.py