summaryrefslogtreecommitdiff
path: root/tests/basics/array_micropython.py
diff options
context:
space:
mode:
authorJeff Epler <jepler@unpythonic.net>2018-03-26 18:13:49 -0500
committerJeff Epler <jepler@unpythonic.net>2018-03-26 18:13:49 -0500
commit355bf8b5538b4fe2f9f07b0d8fb2f4500c2f96c6 (patch)
treee14a249dee6038a3873715797aee82e92e9b3bec /tests/basics/array_micropython.py
parentfa884466793738338edb7389dc6b21f160bba37b (diff)
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
Diffstat (limited to 'tests/basics/array_micropython.py')
-rw-r--r--tests/basics/array_micropython.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/basics/array_micropython.py b/tests/basics/array_micropython.py
index e26ad7ae9..b92c5a9b9 100644
--- a/tests/basics/array_micropython.py
+++ b/tests/basics/array_micropython.py
@@ -5,6 +5,12 @@ except ImportError:
print("SKIP")
raise SystemExit
+try:
+ array.array('O')
+except ValueError:
+ print("SKIP")
+ raise SystemExit
+
# arrays of objects
a = array.array('O')
a.append(1)