Skip to content

Commit

Permalink
Test serializing a collection of bytes objects
Browse files Browse the repository at this point in the history
  • Loading branch information
jakirkham committed Jun 4, 2020
1 parent 59afbde commit fae29d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distributed/protocol/tests/test_serialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def test_empty_loads_deep():
"kwargs", [{}, {"serializers": ["pickle"]},],
)
def test_serialize_bytes(kwargs):
for x in [1, "abc", np.arange(5), b"ab" * int(40e6), 2 ** 26 * b"ab"]:
for x in [1, "abc", np.arange(5), b"ab" * int(40e6), 2 ** 26 * b"ab", (2 ** 25 * b"ab", 2 ** 25 * b"ab")]:
b = serialize_bytes(x, **kwargs)
assert isinstance(b, bytes)
y = deserialize_bytes(b)
Expand Down

0 comments on commit fae29d8

Please sign in to comment.