From: Mike Bayer Date: Tue, 7 Oct 2025 18:05:49 +0000 (-0400) Subject: add teardown to "run_n_times" X-Git-Tag: rel_2_0_44~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90ebec21777a0e1e000c678de3a1ea8d3deaba01;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git add teardown to "run_n_times" Change-Id: Ibeeb90f7ea3bbd32ffd27b4eb2e2988018e87a5c (cherry picked from commit 1ad77a925c4d34a6c6c4879803a79e7d6d10881b) --- diff --git a/test/aaa_profiling/test_memusage.py b/test/aaa_profiling/test_memusage.py index ebcc41cd2e..387a7521d9 100644 --- a/test/aaa_profiling/test_memusage.py +++ b/test/aaa_profiling/test_memusage.py @@ -1844,6 +1844,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