Skip to content

Commit 62a0af1

Browse files
committed
Fix testcase
1 parent 71c5a62 commit 62a0af1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/pycardano/test_serialization.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1072,4 +1072,6 @@ def test_indefinite_list_highjacking_does_not_break_cbor2():
10721072
ls = IndefiniteFrozenList(["hello"])
10731073
ls.freeze()
10741074
a = {ls: 1}
1075-
cbor2.loads(cbor2.dumps(a, default=default_encoder))
1075+
encoded = cbor2.dumps(a, default=default_encoder)
1076+
decoded = cbor2.loads(encoded)
1077+
assert isinstance(list(decoded.keys())[0], IndefiniteList)

0 commit comments

Comments
 (0)