From: Mike Bayer Date: Tue, 7 Oct 2025 18:05:49 +0000 (-0400) Subject: add teardown to "run_n_times" X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1ad77a925c4d34a6c6c4879803a79e7d6d10881b;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git add teardown to "run_n_times" Change-Id: Ibeeb90f7ea3bbd32ffd27b4eb2e2988018e87a5c --- diff --git a/test/aaa_profiling/test_memusage.py b/test/aaa_profiling/test_memusage.py index f280917238..0055232b72 100644 --- a/test/aaa_profiling/test_memusage.py +++ b/test/aaa_profiling/test_memusage.py @@ -1788,6 +1788,9 @@ class WeakIdentityMapTest(_fixtures.FixtureTest): fn() except Exception as err: error = err + with testing.db.begin() as conn: + conn.execute(self.tables.addresses.delete()) + conn.execute(self.tables.users.delete()) continue else: break