From d33e0a597d6409d2e19d709a6c9acb25b3150bcc Mon Sep 17 00:00:00 2001 From: Denise Govindarajan Date: Tue, 15 Mar 2011 17:47:36 -0400 Subject: [PATCH] psycopg2 2.4 no longer accepts % in bind place holders --- test/sql/test_query.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/sql/test_query.py b/test/sql/test_query.py index 1adb00aea1..8f7c4c6a7b 100644 --- a/test/sql/test_query.py +++ b/test/sql/test_query.py @@ -1025,6 +1025,7 @@ class PercentSchemaNamesTest(TestBase): def teardown_class(cls): metadata.drop_all() + @testing.skip_if(lambda: testing.against('postgresql'), "psycopg2 2.4 no longer accepts % in bind placeholders") def test_single_roundtrip(self): percent_table.insert().execute( {'percent%':5, 'spaces % more spaces':12}, @@ -1040,6 +1041,7 @@ class PercentSchemaNamesTest(TestBase): ) self._assert_table() + @testing.skip_if(lambda: testing.against('postgresql'), "psycopg2 2.4 no longer accepts % in bind placeholders") @testing.crashes('mysql+mysqldb', 'MySQLdb handles executemany() inconsistently vs. execute()') def test_executemany_roundtrip(self): percent_table.insert().execute( -- 2.47.2