Skip to content

Commit

Permalink
Fix the property lock when the deserializer returns bytes or buffer
Browse files Browse the repository at this point in the history
Also, fix the case when the state is serialized with keys in a different order, by parsing the json we generated with jsondumps.
  • Loading branch information
jasongrout committed Aug 9, 2017
1 parent 349f556 commit 0dbb6b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipywidgets/widgets/tests/test_set_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,4 @@ def test_set_state_data_truncate():

# Sanity:
assert len(buffers) == 1
assert buffers[0].tobytes() == data[:20].tobytes()
assert buffers[0] == data[:20].tobytes()

0 comments on commit 0dbb6b7

Please sign in to comment.