circuitpython/tests/basics/int_parse.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
194 B
Python
Raw Permalink Normal View History

# Test parsing ints.
try:
bytearray
memoryview
except NameError:
print("SKIP")
raise SystemExit
print(int(b"123"))
print(int(bytearray(b"123")))
print(int(memoryview(b"123")))