diff options
Diffstat (limited to 'test/aaa_profiling/test_compiler.py')
| -rw-r--r-- | test/aaa_profiling/test_compiler.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/aaa_profiling/test_compiler.py b/test/aaa_profiling/test_compiler.py index a7f64410b..bc589c0b2 100644 --- a/test/aaa_profiling/test_compiler.py +++ b/test/aaa_profiling/test_compiler.py @@ -5,6 +5,7 @@ from sqlalchemy.test import * class CompileTest(TestBase, AssertsExecutionResults): @classmethod def setup_class(cls): + global t1, t2, metadata metadata = MetaData() t1 = Table('t1', metadata, @@ -15,6 +16,10 @@ class CompileTest(TestBase, AssertsExecutionResults): Column('c1', Integer, primary_key=True), Column('c2', String(30))) + # do a "compile" ahead of time to load + # deferred imports + t1.insert().compile() + # go through all the TypeEngine # objects in use and pre-load their _type_affinity # entries. |
