diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-04-26 00:11:22 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-04-26 00:11:22 -0400 |
| commit | 7b86a06d2d7e3e4d7e6b822f19d5085dfd948e09 (patch) | |
| tree | 0af935100fab7fb2bac70c746c931fc83e208ce1 /test/sql/test_constraints.py | |
| parent | dbed163ccebc9c45d9efc2fbb2502ecba4ab8773 (diff) | |
| download | sqlalchemy-7b86a06d2d7e3e4d7e6b822f19d5085dfd948e09.tar.gz | |
- Fixed errant space character when generating ADD CONSTRAINT
for a named UNIQUE constraint.
Diffstat (limited to 'test/sql/test_constraints.py')
| -rw-r--r-- | test/sql/test_constraints.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/sql/test_constraints.py b/test/sql/test_constraints.py index 97f5190d4..eed77ed83 100644 --- a/test/sql/test_constraints.py +++ b/test/sql/test_constraints.py @@ -376,13 +376,13 @@ class ConstraintCompilationTest(TestBase, AssertsCompiledSQL): t2.append_constraint(constraint) self.assert_compile( schema.AddConstraint(constraint), - "ALTER TABLE t2 ADD CONSTRAINT uq_cst UNIQUE (a, b)" + "ALTER TABLE t2 ADD CONSTRAINT uq_cst UNIQUE (a, b)" ) constraint = UniqueConstraint(t2.c.a, t2.c.b, name="uq_cs2") self.assert_compile( schema.AddConstraint(constraint), - "ALTER TABLE t2 ADD CONSTRAINT uq_cs2 UNIQUE (a, b)" + "ALTER TABLE t2 ADD CONSTRAINT uq_cs2 UNIQUE (a, b)" ) assert t.c.a.primary_key is False |
