From b0d9d5a44cdd5632d209149a6a6622073acee3da Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 3 Jan 2025 15:40:26 -0500 Subject: [PATCH] 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 --- test/orm/test_events.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, -- 2.47.2