From: Mike Bayer Date: Sun, 26 May 2013 21:18:04 +0000 (-0400) Subject: fix this test X-Git-Tag: rel_0_8_2~69^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2b8c893ca98bb0141405a7d7d40c4024d5bdf41;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git fix this test --- diff --git a/lib/sqlalchemy/sql/expression.py b/lib/sqlalchemy/sql/expression.py index 3644cabc39..3f9aef2b78 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 e881298a77..183b721110 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 )