From bb57264d52994f24b6239d4e5b4f2c5df8b2d998 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 19 Mar 2006 21:23:19 +0000 Subject: [PATCH] added size limit on test BLOB since mysql has a configured limit of 65535 (at least on my server....) --- test/testtypes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/testtypes.py b/test/testtypes.py index b874fe0afe..147fe25d5a 100644 --- a/test/testtypes.py +++ b/test/testtypes.py @@ -150,6 +150,7 @@ class BinaryTest(AssertMixin): binary_table.insert().execute(misc='sql.pyc', data=stream1, data_slice=stream1[0:100]) binary_table.insert().execute(misc='engine.pyc', data=stream2, data_slice=stream2[0:99]) l = binary_table.select().execute().fetchall() + print 'HI HI HI' print len(stream1), len(l[0]['data']), len(l[0]['data_slice']) self.assert_(list(stream1) == list(l[0]['data'])) self.assert_(list(stream1[0:100]) == list(l[0]['data_slice'])) @@ -160,7 +161,8 @@ class BinaryTest(AssertMixin): mod = getattr(mod, token) f = mod.__file__ f = re.sub('\.py$', '\.pyc', f) - return file(f).read() + # put a number less than the typical MySQL default BLOB size + return file(f).read(59473) class DateTest(AssertMixin): def setUpAll(self): -- 2.47.2