Skip to content

Commit 1c30e28

Browse files
committed
pickle: test_pickle.py: Update for bytes being returned/consumed.
1 parent 22527a6 commit 1c30e28

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pickle/test_pickle.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
def roundtrip(val):
77
t = pickle.dumps(val)
8+
assert isinstance(t, bytes)
89
t = pickle.loads(t)
910
assert t == val
1011

@@ -18,7 +19,7 @@ def roundtrip(val):
1819
roundtrip({1:2, 3: 4})
1920

2021
try:
21-
pickle.loads("1; import micropython")
22+
pickle.loads(b"1; import micropython")
2223
assert 0, "SyntaxError expected"
2324
except SyntaxError:
2425
pass

0 commit comments

Comments
 (0)