From ca46caede4b8d846f3cd48e642922ae821d0be2b Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 4 Dec 2022 23:25:14 -0500 Subject: adjustments for unreliable gc sporadic (and at the moment persistent) test failures related to aiosqlite seem to have in common that Python gc stops working fully when we run a lot of tests with aiosqlite. The failures are not limited to aiosqlite as they are more involving places where we assume or expect gc.collect() to get rid of things, and it doesn't. Identify (based on reproducible case on the d3 CI runner) the spots where this happens and add fixes. test/orm/test_transaction.py test_gced_delete_on_rollback has always been a very sensitive test with a lot of issues, so here we move it to the test_memusage suite and limit it only to when the memusage suite is running. Change-Id: I683412d0effe8732c45980b40722e5bb63431177 --- doc/build/orm/queryguide/_deferred_setup.rst | 1 + doc/build/orm/queryguide/select.rst | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'doc') diff --git a/doc/build/orm/queryguide/_deferred_setup.rst b/doc/build/orm/queryguide/_deferred_setup.rst index e75630c46..2675c9341 100644 --- a/doc/build/orm/queryguide/_deferred_setup.rst +++ b/doc/build/orm/queryguide/_deferred_setup.rst @@ -100,5 +100,6 @@ This page illustrates the mappings and fixture data used by the ... ) >>> session.commit() BEGIN ... COMMIT + >>> session.close() >>> conn.begin() BEGIN ... diff --git a/doc/build/orm/queryguide/select.rst b/doc/build/orm/queryguide/select.rst index 7967bb4d5..55c3ae94e 100644 --- a/doc/build/orm/queryguide/select.rst +++ b/doc/build/orm/queryguide/select.rst @@ -1001,6 +1001,10 @@ which belonged to "sandy": Relationship Instance Comparison Operators ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +.. comment + + >>> session.expunge_all() + The :func:`_orm.relationship`-bound attribute also offers a few SQL construction implementations that are geared towards filtering a :func:`_orm.relationship`-bound attribute in terms of a specific instance of a related object, which can unpack -- cgit v1.2.1