diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-01-30 13:38:51 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-01-30 13:38:51 -0500 |
| commit | 383bb3f708168aedb1832050a84ff054f8211386 (patch) | |
| tree | 3bc8837150ab66a2be63c780ac5912f5cb89e5bc /test/sql/test_constraints.py | |
| parent | 3712e35c329cc3b5106f026be90e04f65412586d (diff) | |
| download | sqlalchemy-383bb3f708168aedb1832050a84ff054f8211386.tar.gz | |
- The :class:`.CheckConstraint` construct now supports naming
conventions that include the token ``%(column_0_name)s``; the
constraint expression is scanned for columns. Additionally,
naming conventions for check constraints that don't include the
``%(constraint_name)s`` token will now work for :class:`.SchemaType`-
generated constraints, such as those of :class:`.Boolean` and
:class:`.Enum`; this stopped working in 0.9.7 due to :ticket:`3067`.
fixes #3299
Diffstat (limited to 'test/sql/test_constraints.py')
| -rw-r--r-- | test/sql/test_constraints.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sql/test_constraints.py b/test/sql/test_constraints.py index 2603f67a3..eb558fc95 100644 --- a/test/sql/test_constraints.py +++ b/test/sql/test_constraints.py @@ -1063,7 +1063,7 @@ class ConstraintAPITest(fixtures.TestBase): ) assert_raises_message( exc.ArgumentError, - "Column 't2.y' is not part of table 't1'.", + r"Column\(s\) 't2.y' are not part of table 't1'.", Index, "bar", t1.c.x, t2.c.y ) |
