]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
close unclosed sqlite result
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 3 Jan 2025 20:40:26 +0000 (15:40 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 3 Jan 2025 20:41:27 +0000 (15:41 -0500)
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

index 287f43646469748a6809bbf3e9474e16d45b3512..85a7d0c344bb68060b20ce7c16a5d8e0603b7481 100644 (file)
@@ -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,