]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
added size limit on test BLOB since mysql has a configured limit of 65535 (at least...
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 19 Mar 2006 21:23:19 +0000 (21:23 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 19 Mar 2006 21:23:19 +0000 (21:23 +0000)
test/testtypes.py

index b874fe0afef02ed812b7a114921c8cd2429b24d9..147fe25d5afa06fcba22658e9a614f9b5888f983 100644 (file)
@@ -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):