Skip to content
Snippets Groups Projects
Commit 57aebe17 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

tests: Add testcase for bytes() on values in range 128-255.

parent bbd9251b
No related branches found
No related tags found
No related merge requests found
......@@ -37,3 +37,9 @@ print(bytes(range(5)))
x = b"\xff\x8e\xfe}\xfd\x7f"
print(len(x))
print(x[0], x[1], x[2], x[3])
# Make sure init values are not mistreated as unicode chars
# For sequence of known len
print(bytes([128, 255]))
# For sequence of unknown len
print(bytes(iter([128, 255])))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment