From aee13ef3f219a7a2e19c017323694b946d500d14 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Fri, 9 Dec 2016 22:53:30 +0300 Subject: tests: Update for required byteorder arg for int.from_bytes()/to_bytes(). --- tests/basics/int_bytes_notimpl.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/basics/int_bytes_notimpl.py (limited to 'tests/basics/int_bytes_notimpl.py') 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)) -- cgit v1.2.3