]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Update missed branch in py2k test
authorNate Clark <natec425@gmail.com>
Mon, 18 Feb 2019 21:21:20 +0000 (15:21 -0600)
committerNate Clark <natec425@gmail.com>
Mon, 18 Feb 2019 21:21:20 +0000 (15:21 -0600)
The python2 branch of this test wasn't updated appropriately.

It adds a missing "\n" due to joining on "\n" instead " ".

Removes an extra "\" from the escaped unicode that is no longer
needed since the SQL is being rendered using %s instead of %r.

test/engine/test_execute.py

index fc152417a206b08e7dde54ae930092694d0b5ed5..e18cdfad4cf8758490414e55ba1f1b86e8122b7a 100644 (file)
@@ -410,8 +410,8 @@ class ExecuteTest(fixtures.TestBase):
             assert_raises_message(
                 tsa.exc.StatementError,
                 util.u(
-                    "A value is required for bind parameter 'uname'"
-                    r".*SELECT users.user_name AS .m\\xe9il."
+                    "A value is required for bind parameter 'uname'\n"
+                    r".*SELECT users.user_name AS .m\xe9il."
                 )
                 if util.py2k
                 else util.u(