]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fix this test
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 26 May 2013 21:18:04 +0000 (17:18 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 26 May 2013 21:18:04 +0000 (17:18 -0400)
lib/sqlalchemy/sql/expression.py
test/sql/test_selectable.py

index 3644cabc39692d57b38c777435ac295ca2b7a68b..3f9aef2b7835052e8cbc63d9713cdbdd13457a27 100644 (file)
@@ -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)
index e881298a773826ef77072483f2d9711a9134cc13..183b721110b9ae0a007e77eaab754fabd5316acb 100644 (file)
@@ -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
         )