]> 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:42 +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
(cherry picked from commit b0d9d5a44cdd5632d209149a6a6622073acee3da)

test/orm/test_events.py

index 5e1672b526b62cabec4c7856a51968bd95e2de74..2b24e47469d0424ccf2f4c7b380cf38ef16658c3 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,