Add a test to ensure msgpack can handle large binary payloads

This commit is contained in:
Kovid Goyal 2019-01-30 21:55:39 +05:30
parent 9ef0060c33
commit 90998fabf3
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -113,6 +113,8 @@ class BuildTest(unittest.TestCase):
self.assertEqual(obj, msgpack_loads(s))
self.assertEqual(type(msgpack_loads(msgpack_dumps(b'b'))), bytes)
self.assertEqual(type(msgpack_loads(msgpack_dumps(u'b'))), type(u''))
large = b'x' * (100 * 1024 * 1024)
msgpack_loads(msgpack_dumps(large))
@unittest.skipUnless(isosx, 'FSEvents only present on OS X')
def test_fsevents(self):