From d48c9eda0d06cb77169217c96959ecfb23194a53 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 21 Apr 2021 23:03:51 -0400 Subject: [PATCH] repair test for mysql mysql doesnt seem to be able to combine the metadata fixture with multiprocessing here, do cleanup inside the test for now. Change-Id: I105ec1096bd162080a38e1a021d2520d1581bb04 --- test/aaa_profiling/test_memusage.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/aaa_profiling/test_memusage.py b/test/aaa_profiling/test_memusage.py index 5347c6c728..28865d0109 100644 --- a/test/aaa_profiling/test_memusage.py +++ b/test/aaa_profiling/test_memusage.py @@ -985,10 +985,9 @@ class MemUsageWBackendTest(EnsureZeroed): assert_no_mappers() @testing.uses_deprecated() - @testing.provide_metadata def test_key_fallback_result(self): + m = MetaData() e = self.engine - m = self.metadata t = Table("t", m, Column("x", Integer), Column("y", Integer)) m.create_all(e) e.execute(t.insert(), {"x": 1, "y": 1}) @@ -999,7 +998,10 @@ class MemUsageWBackendTest(EnsureZeroed): for row in r: row[t.c.x] - go() + try: + go() + finally: + m.drop_all(e) def test_many_discarded_relationships(self): """a use case that really isn't supported, nonetheless we can -- 2.47.3