Files
buildroot/support/testing/tests/package/sample_python_msgpack.py
Marcus Hoffmann 663b0c49f3 support/testing: add python-msgpack runtime test
Signed-off-by: Marcus Hoffmann <buildroot@bubu1.eu>
Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
(cherry picked from commit d429d5d399)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-08-20 21:45:36 +02:00

6 lines
127 B
Python

import msgpack
packaed = msgpack.packb([1, 2, 3], use_bin_type=True)
assert msgpack.unpackb(packaed, raw=False) == [1, 2, 3]