Skip to content

Commit 57aebe1

Browse files
committed
tests: Add testcase for bytes() on values in range 128-255.
1 parent bbd9251 commit 57aebe1

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/basics/bytes.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,9 @@
3737
x = b"\xff\x8e\xfe}\xfd\x7f"
3838
print(len(x))
3939
print(x[0], x[1], x[2], x[3])
40+
41+
# Make sure init values are not mistreated as unicode chars
42+
# For sequence of known len
43+
print(bytes([128, 255]))
44+
# For sequence of unknown len
45+
print(bytes(iter([128, 255])))

0 commit comments

Comments
 (0)