summaryrefslogtreecommitdiff
path: root/test/aaa_profiling/test_memusage.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-12-19 19:13:40 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2010-12-19 19:13:40 -0500
commit0a46523a92dbf5229575cd75bb1be989024676ec (patch)
treebc3befb326471e54257e81bdb8172dbaa1b50048 /test/aaa_profiling/test_memusage.py
parenta04a2a015094884369ebde9e24bf831652003b85 (diff)
downloadsqlalchemy-0a46523a92dbf5229575cd75bb1be989024676ec.tar.gz
triple check that the dict is empty
Diffstat (limited to 'test/aaa_profiling/test_memusage.py')
-rw-r--r--test/aaa_profiling/test_memusage.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/aaa_profiling/test_memusage.py b/test/aaa_profiling/test_memusage.py
index e3ed80a74..7f7cbcfb1 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):