From 0a46523a92dbf5229575cd75bb1be989024676ec Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 19 Dec 2010 19:13:40 -0500 Subject: [PATCH] triple check that the dict is empty --- test/aaa_profiling/test_memusage.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/aaa_profiling/test_memusage.py b/test/aaa_profiling/test_memusage.py index e3ed80a74a..7f7cbcfb19 100644 --- a/test/aaa_profiling/test_memusage.py +++ b/test/aaa_profiling/test_memusage.py @@ -218,6 +218,7 @@ class MemUsageTest(EnsureZeroed): from sqlalchemy.dialects import mysql, postgresql, sqlite from sqlalchemy import types + eng = engines.testing_engine() for args in ( (types.Integer, ), (types.String, ), @@ -232,9 +233,11 @@ class MemUsageTest(EnsureZeroed): @profile_memory def go(): type_ = args[0](*args[1:]) - bp = type_._cached_bind_processor(testing.db.dialect) - rp = type_._cached_result_processor(testing.db.dialect, 0) + bp = type_._cached_bind_processor(eng.dialect) + rp = type_._cached_result_processor(eng.dialect, 0) go() + + assert not eng.dialect._type_memos def test_many_updates(self): -- 2.47.3