diff options
author | Gerhard Häring <gh@ghaering.de> | 2007-08-10 18:15:11 (GMT) |
---|---|---|
committer | Gerhard Häring <gh@ghaering.de> | 2007-08-10 18:15:11 (GMT) |
commit | 6d21456137836b8acd551cf6a51999ad4ff10a91 (patch) | |
tree | a9cdbf533531b1326623f704e6155350dddb0b17 /Lib/sqlite3/test/userfunctions.py | |
parent | bd4a63e091ddb38a2d55d9c21eee8656863240ca (diff) | |
download | cpython-6d21456137836b8acd551cf6a51999ad4ff10a91.zip cpython-6d21456137836b8acd551cf6a51999ad4ff10a91.tar.gz cpython-6d21456137836b8acd551cf6a51999ad4ff10a91.tar.bz2 |
Make the sqlite tests pass.
Diffstat (limited to 'Lib/sqlite3/test/userfunctions.py')
-rw-r--r-- | Lib/sqlite3/test/userfunctions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/sqlite3/test/userfunctions.py b/Lib/sqlite3/test/userfunctions.py index a2f2574..bc8e6d2 100644 --- a/Lib/sqlite3/test/userfunctions.py +++ b/Lib/sqlite3/test/userfunctions.py @@ -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() |