diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2016-01-19 16:47:16 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2016-01-19 16:47:16 -0500 |
| commit | 39837686b068a6e7016169f31a96a058546e4bdd (patch) | |
| tree | 736084283457941f22601f3afc4b58dadcd95edf /test/sql/test_metadata.py | |
| parent | b7bc704f3d05bed8d0771cbff65adcdb7b49f796 (diff) | |
| download | sqlalchemy-39837686b068a6e7016169f31a96a058546e4bdd.tar.gz | |
- calling str() on a core sql construct has been made more "friendly",
when the construct contains non-standard sql elements such as
returning, array index operations, or dialect-specific or custom
datatypes. a string is now returned in these cases rendering an
approximation of the construct (typically the postgresql-style
version of it) rather than raising an error. fixes #3631
- add within_group to top-level imports
- add eq_ignore_whitespace to sqlalchemy.testing imports
Diffstat (limited to 'test/sql/test_metadata.py')
| -rw-r--r-- | test/sql/test_metadata.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/sql/test_metadata.py b/test/sql/test_metadata.py index bbc318421..47ecf5a9b 100644 --- a/test/sql/test_metadata.py +++ b/test/sql/test_metadata.py @@ -9,6 +9,7 @@ from sqlalchemy import Integer, String, UniqueConstraint, \ events, Unicode, types as sqltypes, bindparam, \ Table, Column, Boolean, Enum, func, text, TypeDecorator from sqlalchemy import schema, exc +from sqlalchemy.engine import default from sqlalchemy.sql import elements, naming import sqlalchemy as tsa from sqlalchemy.testing import fixtures @@ -3682,7 +3683,7 @@ class NamingConventionTest(fixtures.TestBase, AssertsCompiledSQL): exc.InvalidRequestError, "Naming convention including \%\(constraint_name\)s token " "requires that constraint is explicitly named.", - schema.CreateTable(u1).compile + schema.CreateTable(u1).compile, dialect=default.DefaultDialect() ) def test_schematype_no_ck_name_boolean_no_name(self): |
