diff options
Diffstat (limited to 'tests/basics/int_bytes_notimpl.py')
-rw-r--r-- | tests/basics/int_bytes_notimpl.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/basics/int_bytes_notimpl.py b/tests/basics/int_bytes_notimpl.py new file mode 100644 index 0000000000..b47d6ab584 --- /dev/null +++ b/tests/basics/int_bytes_notimpl.py @@ -0,0 +1,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)) |