From: Mike Bayer Date: Fri, 3 Jan 2025 20:40:26 +0000 (-0500) Subject: close unclosed sqlite result X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0d9d5a44cdd5632d209149a6a6622073acee3da;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git close unclosed sqlite result this close is hoped to address failures that have been occurring on github actions under python 3.13, although i am able to reproduce the problem on other python versions as well when running test/orm/test_events.py with the --random extension. Change-Id: If0c4110815fd8625b39b2d74de26ac965401de14 --- diff --git a/test/orm/test_events.py b/test/orm/test_events.py index 287f436464..85a7d0c344 100644 --- a/test/orm/test_events.py +++ b/test/orm/test_events.py @@ -782,7 +782,8 @@ class ORMExecuteTest(RemoveORMEventsGlobally, _fixtures.FixtureTest): if from_stmt: stmt = select(User).from_statement(stmt.returning(User)) - sess.execute(stmt) + result = sess.execute(stmt) + result.close() eq_( canary.mock_calls,