From 05fec17d9b126ee680095110fd520162669a6ce7 Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 14 Mar 2017 18:27:43 +1100 Subject: [PATCH] tests/basics/struct_micropython: Add test for 'S' typecode in ustruct. The 'S' typecode is a uPy extension so it should be grouped with the other extension (namely 'O' typecode). Testing 'S' needs uctypes which is an extmod module and not always available, so this test is made optional and will only be run on ports that have (u)struct and uctypes. Otherwise it will be silently skipped. --- tests/basics/struct_micropython.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/basics/struct_micropython.py b/tests/basics/struct_micropython.py index e3b0ea5086..53306dad67 100644 --- a/tests/basics/struct_micropython.py +++ b/tests/basics/struct_micropython.py @@ -18,3 +18,16 @@ o = A() s = struct.pack("