diff Lib/sqlite3/test/dbapi.py @ 43487:8c10aac37037

Breaking ground for PEP 3137 implementation: Get rid of buffer(). Use memoryview() in its place where possible. In a few places, do things a bit different, because memoryview() can't slice (yet).
author Guido van Rossum <guido@python.org>
date Mon, 08 Oct 2007 02:46:15 +0000
parents 229c28cb9afb
children e06e08e8fdce
line wrap: on
line diff
--- a/Lib/sqlite3/test/dbapi.py	Sun Oct 07 23:12:41 2007 +0000
+++ b/Lib/sqlite3/test/dbapi.py	Mon Oct 08 02:46:15 2007 +0000
@@ -593,7 +593,7 @@
         ts = sqlite.TimestampFromTicks(42)
 
     def CheckBinary(self):
-        b = sqlite.Binary(chr(0) + "'")
+        b = sqlite.Binary(b"\0'")
 
 class ExtensionTests(unittest.TestCase):
     def CheckScriptStringSql(self):