diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-09-09 14:39:25 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-09-09 14:39:25 -0400 |
| commit | 1c325dc9c73820e78ab79d4aa160dc0f6cbe3b65 (patch) | |
| tree | 02b1a3fb6f24fe0bddd582a3fec519c99d40d36c /test/ext | |
| parent | b96250d0063cd7ce9cc1f95abade68e6656d6acb (diff) | |
| download | sqlalchemy-1c325dc9c73820e78ab79d4aa160dc0f6cbe3b65.tar.gz | |
- [feature] Added a hook to the system of rendering
CREATE TABLE that provides access to the render for each
Column individually, by constructing a @compiles
function against the new schema.CreateColumn
construct. [ticket:2463]
Diffstat (limited to 'test/ext')
| -rw-r--r-- | test/ext/test_compiler.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/ext/test_compiler.py b/test/ext/test_compiler.py index 0f61ca8d8..d4931931a 100644 --- a/test/ext/test_compiler.py +++ b/test/ext/test_compiler.py @@ -5,7 +5,7 @@ from sqlalchemy.sql.expression import ClauseElement, ColumnClause,\ BindParameter from sqlalchemy.schema import DDLElement -from sqlalchemy.ext.compiler import compiles +from sqlalchemy.ext.compiler import compiles, deregister from sqlalchemy import exc from sqlalchemy.sql import table, column, visitors from test.lib.testing import assert_raises_message @@ -322,9 +322,7 @@ class DefaultOnExistingTest(fixtures.TestBase, AssertsCompiledSQL): def teardown(self): for cls in (Select, BindParameter): - if hasattr(cls, '_compiler_dispatcher'): - visitors._generate_dispatch(cls) - del cls._compiler_dispatcher + deregister(cls) def test_select(self): t1 = table('t1', column('c1'), column('c2')) |
