diff options
author | Damien George <damien.p.george@gmail.com> | 2019-04-28 22:12:17 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-04-28 22:12:17 +1000 |
commit | ca39ea7cef802497834aa2a0afa0ef8cae9ab800 (patch) | |
tree | 880551a728bfe3d8d621956f5984264f8214934b /tests/basics/subclass_native_call.py | |
parent | 70a28e3ad9a251e77f0fa2da643f014044035a36 (diff) |
tests: Skip tests needing machine module if (u)machine doesn't exist.
Diffstat (limited to 'tests/basics/subclass_native_call.py')
-rw-r--r-- | tests/basics/subclass_native_call.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/basics/subclass_native_call.py b/tests/basics/subclass_native_call.py index c64557522..969f0a415 100644 --- a/tests/basics/subclass_native_call.py +++ b/tests/basics/subclass_native_call.py @@ -4,13 +4,13 @@ # and is callable (has call). The only one available is machine.Signal, which # in turns needs PinBase. try: - import umachine as machine -except ImportError: - import machine -try: + try: + import umachine as machine + except ImportError: + import machine machine.PinBase machine.Signal -except AttributeError: +except: print("SKIP") raise SystemExit |