More Python 3 fixes. Py 3 blows up when testing BLOBs.

This commit is contained in:
adustman
2012-09-08 21:22:53 +00:00
parent 8041cc6df6
commit 7676693b8f
4 changed files with 31 additions and 20 deletions

View File

@ -24,8 +24,9 @@ class DatabaseTest(unittest.TestCase):
db = self.db_module.connect(*self.connect_args, **self.connect_kwargs)
self.connection = db
self.cursor = db.cursor()
# TODO: this needs to be re-evaluated for Python 3
self.BLOBText = ''.join([chr(i) for i in range(256)] * 100);
self.BLOBUText = ''.join([unichr(i) for i in range(16384)])
self.BLOBUText = u''.join([unichr(i) for i in range(16384)])
self.BLOBBinary = self.db_module.Binary(''.join([chr(i) for i in range(256)] * 16))
leak_test = True