summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/int_bytes_notimpl.py
blob: b47d6ab5843ca38e8bafbe1ee6a6ff6622c0c114 (plain) (blame)
1
2
3
4
5
6
7
8
9
try:
    print((10).to_bytes(1, "big"))
except Exception as e:
    print(type(e))

try:
    print(int.from_bytes(b"\0", "big"))
except Exception as e:
    print(type(e))