diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-05-26 17:18:04 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-05-26 17:18:04 -0400 |
commit | e2b8c893ca98bb0141405a7d7d40c4024d5bdf41 (patch) | |
tree | 1579f2a0932ab73b75227e4ffd06c4390148448a | |
parent | bfc948e44b15930e566d4afd4340570099af309b (diff) | |
download | sqlalchemy-e2b8c893ca98bb0141405a7d7d40c4024d5bdf41.tar.gz |
fix this test
-rw-r--r-- | lib/sqlalchemy/sql/expression.py | 2 | ||||
-rw-r--r-- | test/sql/test_selectable.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/sql/expression.py b/lib/sqlalchemy/sql/expression.py index 3644cabc3..3f9aef2b7 100644 --- a/lib/sqlalchemy/sql/expression.py +++ b/lib/sqlalchemy/sql/expression.py @@ -2485,7 +2485,7 @@ class ColumnCollection(util.OrderedProperties): existing = self[key] if not existing.shares_lineage(value): util.warn('Column %r on table %r being replaced by ' - '%r , which has the same key. Consider ' + '%r, which has the same key. Consider ' 'use_labels for select() statements.' % (key, getattr(existing, 'table', None), value)) self._all_cols.remove(existing) diff --git a/test/sql/test_selectable.py b/test/sql/test_selectable.py index e881298a7..183b72111 100644 --- a/test/sql/test_selectable.py +++ b/test/sql/test_selectable.py @@ -1592,7 +1592,7 @@ class WithLabelsTest(fixtures.TestBase): def _assert_labels_warning(self, s): assert_raises_message( exc.SAWarning, - "replaced by another column with the same key", + r"replaced by Column.*, which has the same key", lambda: s.c ) |