From 7b98535f6003b763a09e106e09e3b2c82ce0c631 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 bdf67098b7..3e1a26cded 100644 --- a/test/sql/test_query.py +++ b/test/sql/test_query.py @@ -932,6 +932,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}, @@ -947,6 +948,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.3