diff options
| author | Scott Shawcroft <scott.shawcroft@gmail.com> | 2017-10-24 22:31:16 -0700 |
|---|---|---|
| committer | Scott Shawcroft <scott.shawcroft@gmail.com> | 2017-10-24 22:31:16 -0700 |
| commit | 73c15dcf8b1b927757a595a867334b38355ddb8f (patch) | |
| tree | b1727518e47219b995611aa7e5c9da66e3df5075 /tests/basics/int_longint_bytes.py | |
| parent | d43564f854a6a1202dfff550986b9343952d5d32 (diff) | |
| parent | f869d6b2e339c04469c6c9ea3fb2fabd7bbb2d8c (diff) | |
Merge commit 'f869d6b2e339c04469c6c9ea3fb2fabd7bbb2d8c' into nrf2_merge
This is prep for merging in the NRF5 pull request.
Diffstat (limited to 'tests/basics/int_longint_bytes.py')
| -rw-r--r-- | tests/basics/int_longint_bytes.py | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/tests/basics/int_longint_bytes.py b/tests/basics/int_longint_bytes.py index 31510d75a..42e445f53 100644 --- a/tests/basics/int_longint_bytes.py +++ b/tests/basics/int_longint_bytes.py @@ -1,13 +1,6 @@ # Skip if long ints are not supported. -try: - # We have to use variables because 1 << 40 causes an exception on parse and - # cannot be caught. - x = 40 - x = 1 << x -except OverflowError: - print("SKIP") - import sys - sys.exit(1) +import skip_if +skip_if.no_bigint() print((2**64).to_bytes(9, "little")) print(int.from_bytes(b"\x00\x01\0\0\0\0\0\0", "little")) |
