From 355bf8b5538b4fe2f9f07b0d8fb2f4500c2f96c6 Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Mon, 26 Mar 2018 18:13:49 -0500 Subject: Conditionally compile out nonstandard array/struct typecodes .. defaulting to off for circuitpython-supported boards, on for others. .. fixing up the tests that fail when it is turned off, so that they skip instead of failing --- tests/basics/struct_micropython.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/basics/struct_micropython.py') diff --git a/tests/basics/struct_micropython.py b/tests/basics/struct_micropython.py index f203a4666..e72153071 100644 --- a/tests/basics/struct_micropython.py +++ b/tests/basics/struct_micropython.py @@ -9,6 +9,12 @@ except: print("SKIP") raise SystemExit +try: + struct.pack('O', None) +except ValueError: + print("SKIP") + raise SystemExit + class A(): pass -- cgit v1.2.3