mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-05 08:40:13 -04:00
Add a test to ensure msgpack can handle large binary payloads
This commit is contained in:
parent
9ef0060c33
commit
90998fabf3
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user