diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-12-21 16:34:00 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-12-21 16:34:00 -0500 |
commit | dff4e0591eee3def7c4c38666c8fc581c327aa87 (patch) | |
tree | 12893840b5b95948b124161f036c6c85f52e2a8d /test/dialect/test_mysql.py | |
parent | b0f48ca2a910e0a8527b9640c56cc3f342f4f31d (diff) | |
download | sqlalchemy-dff4e0591eee3def7c4c38666c8fc581c327aa87.tar.gz |
- apply pep8 to compiler.py
- deprecate Compiled.compile() - have __init__ do compilation
if statement is present.
Diffstat (limited to 'test/dialect/test_mysql.py')
-rw-r--r-- | test/dialect/test_mysql.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/dialect/test_mysql.py b/test/dialect/test_mysql.py index 02b888fed..0e0f92d3c 100644 --- a/test/dialect/test_mysql.py +++ b/test/dialect/test_mysql.py @@ -188,8 +188,7 @@ class TypesTest(TestBase, AssertsExecutionResults, AssertsCompiledSQL): table_args.append(Column('c%s' % index, type_(*args, **kw))) numeric_table = Table(*table_args) - gen = testing.db.dialect.ddl_compiler( - testing.db.dialect, numeric_table) + gen = testing.db.dialect.ddl_compiler(testing.db.dialect, None) for col in numeric_table.c: index = int(col.name[1:]) @@ -277,8 +276,7 @@ class TypesTest(TestBase, AssertsExecutionResults, AssertsCompiledSQL): table_args.append(Column('c%s' % index, type_(*args, **kw))) charset_table = Table(*table_args) - gen = testing.db.dialect.ddl_compiler(testing.db.dialect, - charset_table) + gen = testing.db.dialect.ddl_compiler(testing.db.dialect, None) for col in charset_table.c: index = int(col.name[1:]) @@ -1471,5 +1469,6 @@ class MatchTest(TestBase, AssertsCompiledSQL): def colspec(c): - return testing.db.dialect.ddl_compiler(testing.db.dialect, c.table).get_column_specification(c) + return testing.db.dialect.ddl_compiler( + testing.db.dialect, None).get_column_specification(c) |