]> 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:55:05 +0000 (16:55 -0400)
commit88c42483e82c57711f5cb674e6464ae713308c30
treeb55baf72a09a1451708b3fbb323be1a87328d8a6
parent3d0bae23f4e542e5cf79a7b757038cbf4671b623
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
(cherry picked from commit 368f5ac6668456609cf5f862c0676108cef4bec8)
lib/sqlalchemy/orm/state.py
test/aaa_profiling/test_memusage.py
test/orm/test_hasparent.py