mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
Updated the sqlite3 module to the external pysqlite 2.2.2 version.
This commit is contained in:
parent
5ef9d9fdb9
commit
3e99c0ad64
22 changed files with 310 additions and 313 deletions
|
@ -22,7 +22,7 @@
|
|||
# 3. This notice may not be removed or altered from any source distribution.
|
||||
|
||||
import os, unittest
|
||||
import pysqlite2.dbapi2 as sqlite
|
||||
import sqlite3 as sqlite
|
||||
|
||||
class CollationTests(unittest.TestCase):
|
||||
def setUp(self):
|
||||
|
@ -72,7 +72,7 @@ class CollationTests(unittest.TestCase):
|
|||
result = con.execute(sql).fetchall()
|
||||
self.fail("should have raised an OperationalError")
|
||||
except sqlite.OperationalError, e:
|
||||
self.failUnlessEqual(e.args[0], "no such collation sequence: mycoll")
|
||||
self.failUnlessEqual(e.args[0].lower(), "no such collation sequence: mycoll")
|
||||
|
||||
def CheckCollationRegisterTwice(self):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue