]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
"graceful fetch" test should....clean up gracefully!
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 26 Nov 2021 23:43:23 +0000 (18:43 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 26 Nov 2021 23:49:34 +0000 (18:49 -0500)
commit9c5dfddfbd405a72d33b72ed097690a6c2c88b3a
treeaea517f1a833ddd81b4ab5e2178d38f943773e3a
parent5eb407f84bdabdbcd68975dbf76dc4c0809d7373
"graceful fetch" test should....clean up gracefully!

this test was relying on gc to close out the connection.
this would lead to problems with aiosqlite as we invalidate
async connetions that aren't gracefully closed, and this test
suite was create tables per suite, so we'd get into a spot where
a new sqlite memory connection without the tables would get set up.

would only occur for full test run + -n2 + C extensions + python 3.7,
but we assume that is all related to just getting gc to trigger
or not trigger at exactly the right moment in this situation.

confirmed if we add a gc.collect() to the test without explcitly
closing out the conenction, the connection is gc'ed and detached,
and we get the error reproduced on the subsequent test.

Change-Id: Icc9d4bc703f0842c27600f532f34bc4c7d3baf21
test/sql/test_resultset.py