diff options
author | Guido van Rossum <guido@python.org> | 2007-08-29 03:44:33 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-08-29 03:44:33 (GMT) |
commit | a8be92b6490f3e14581a18620f146016a1230125 (patch) | |
tree | 7b373adbcecdf98ea29509a17f3901dc2e3dbe55 /Lib/sqlite3/test | |
parent | fa9a121952db01168e8d131549680d8bb8e9ddb7 (diff) | |
download | cpython-a8be92b6490f3e14581a18620f146016a1230125.zip cpython-a8be92b6490f3e14581a18620f146016a1230125.tar.gz cpython-a8be92b6490f3e14581a18620f146016a1230125.tar.bz2 |
Fix the sqlite test. Blobs should be created using buffer(b"blob"),
not buffer("blob").
Diffstat (limited to 'Lib/sqlite3/test')
-rw-r--r-- | Lib/sqlite3/test/userfunctions.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/sqlite3/test/userfunctions.py b/Lib/sqlite3/test/userfunctions.py index bc8e6d2..ab4f756 100644 --- a/Lib/sqlite3/test/userfunctions.py +++ b/Lib/sqlite3/test/userfunctions.py @@ -234,7 +234,7 @@ class FunctionTests(unittest.TestCase): def CheckParamBlob(self): cur = self.con.cursor() - cur.execute("select isblob(?)", (buffer("blob"),)) + cur.execute("select isblob(?)", (buffer(b"blob"),)) val = cur.fetchone()[0] self.failUnlessEqual(val, 1) @@ -252,7 +252,7 @@ class AggregateTests(unittest.TestCase): ) """) cur.execute("insert into test(t, i, f, n, b) values (?, ?, ?, ?, ?)", - ("foo", 5, 3.14, None, buffer("blob"),)) + ("foo", 5, 3.14, None, buffer(b"blob"),)) self.con.create_aggregate("nostep", 1, AggrNoStep) self.con.create_aggregate("nofinalize", 1, AggrNoFinalize) @@ -344,7 +344,7 @@ class AggregateTests(unittest.TestCase): def CheckAggrCheckParamBlob(self): cur = self.con.cursor() - cur.execute("select checkType('blob', ?)", (buffer("blob"),)) + cur.execute("select checkType('blob', ?)", (buffer(b"blob"),)) val = cur.fetchone()[0] self.failUnlessEqual(val, 1) |