From: Mike Bayer Date: Sun, 19 Mar 2006 21:23:19 +0000 (+0000) Subject: added size limit on test BLOB since mysql has a configured limit of 65535 (at least... X-Git-Tag: rel_0_1_5~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb57264d52994f24b6239d4e5b4f2c5df8b2d998;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git added size limit on test BLOB since mysql has a configured limit of 65535 (at least on my server....) --- 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):