circuitpython/tests/basics/int_bytes_notimpl.py
Paul Sokolovsky 3b09dca046 tests: Add test for int.from_bytes() for arbitrary-precision integer.
This test works only for MICROPY_LONGINT_IMPL == MICROPY_LONGINT_IMPL_MPZ
and needs a way of skipping in other cases.
2017-01-21 20:15:31 +03:00

5 lines
82 B
Python

try:
print((10).to_bytes(1, "big"))
except Exception as e:
print(type(e))