summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/int_bytes_notimpl.py
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-12-09 22:53:30 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-12-09 22:53:30 +0300
commitaee13ef3f219a7a2e19c017323694b946d500d14 (patch)
treebf564eb3524c22944a44a531e8c81fd434034f8b /tests/basics/int_bytes_notimpl.py
parent9d787de2a17f99cfeb715507857b92d54b023715 (diff)
downloadmicropython-aee13ef3f219a7a2e19c017323694b946d500d14.tar.gz
micropython-aee13ef3f219a7a2e19c017323694b946d500d14.zip
tests: Update for required byteorder arg for int.from_bytes()/to_bytes().
Diffstat (limited to 'tests/basics/int_bytes_notimpl.py')
-rw-r--r--tests/basics/int_bytes_notimpl.py9
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))