Skip to content

Commit 2552f62

Browse files
committed
Assert MsgPack round-trips bytes objects correctly
Previously MsgPack was turning bytes objects to unicode objects when round-tripping them. However this has been fixed in the latest version of Numcodecs. So correct this test now that MsgPack is working correctly.
1 parent 7eed366 commit 2552f62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zarr/tests/test_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,7 @@ def test_object_arrays(self):
982982
z[0] = 'foo'
983983
assert z[0] == 'foo'
984984
z[1] = b'bar'
985-
assert z[1] == 'bar' # msgpack gets this wrong
985+
assert z[1] == b'bar'
986986
z[2] = 1
987987
assert z[2] == 1
988988
z[3] = [2, 4, 6, 'baz']

0 commit comments

Comments
 (0)