Ticket #15927: 15927.patch

File 15927.patch, 883 bytes (added by Aymeric Augustin, 14 years ago)
  • tests/regressiontests/backends/tests.py

     
    268268        self.assertTrue(hasattr(connection.ops, 'connection'))
    269269        self.assertEqual(connection, connection.ops.connection)
    270270
     271    @unittest.skipUnless(connection.vendor == 'sqlite', 'this test only applies to sqlite')
     272    def test_sqlite3_convert_query(self):
     273        # #15297: FORMAT_QMARK_REGEX in sqlite backend does not work as expected
     274        self.assertEqual(connection.cursor().convert_query('SELECT "%%s";'), 'SELECT "%s";')
    271275
     276
    272277# We don't make these tests conditional because that means we would need to
    273278# check and differentiate between:
    274279# * MySQL+InnoDB, MySQL+MYISAM (something we currently can't do).
Back to Top