mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
Make the sqlite tests pass.
This commit is contained in:
parent
bd4a63e091
commit
6d21456137
7 changed files with 28 additions and 31 deletions
|
@ -36,7 +36,7 @@ def func_returnfloat():
|
|||
def func_returnnull():
|
||||
return None
|
||||
def func_returnblob():
|
||||
return buffer("blob")
|
||||
return buffer(b"blob")
|
||||
def func_raiseexception():
|
||||
5/0
|
||||
|
||||
|
@ -197,7 +197,7 @@ class FunctionTests(unittest.TestCase):
|
|||
cur.execute("select returnblob()")
|
||||
val = cur.fetchone()[0]
|
||||
self.failUnlessEqual(type(val), buffer)
|
||||
self.failUnlessEqual(val, buffer("blob"))
|
||||
self.failUnlessEqual(val, buffer(b"blob"))
|
||||
|
||||
def CheckFuncException(self):
|
||||
cur = self.con.cursor()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue