summaryrefslogtreecommitdiff
path: root/tests/skip_if.py
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2017-08-25 13:00:27 -0700
committerDan Halbert <halbert@halwitz.org>2017-08-25 16:00:27 -0400
commit266be307770abe11c220eb493388807920914b7a (patch)
treed3cff1ab1d0ecc1c55747a2f3ebdf21e450fa794 /tests/skip_if.py
parentdd1c4fc8c776d060acd9b66865b1f961e939716a (diff)
atmel-samd: Introduce a nvm module for non-volatile byte-level memory access. (#203)
* atmel-samd: Introduce a nvm module for non-volatile byte-level memory access. This allows for persisting small configuration values even when the file system is read-only from CircuitPython. Fixes #160 * Review feedback: * Add tests. * Fix non-zero index. * Fix len()
Diffstat (limited to 'tests/skip_if.py')
-rw-r--r--tests/skip_if.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/skip_if.py b/tests/skip_if.py
index f6d22b4c1..7b1e06871 100644
--- a/tests/skip_if.py
+++ b/tests/skip_if.py
@@ -52,6 +52,17 @@ def board_in(*board):
if test_env.board in board:
skip()
+def board_not_in(*board):
+ try:
+ import test_env
+ except ImportError:
+ class Env:
+ def __init__(self, board):
+ self.board = board
+ test_env = Env("unknown")
+ if test_env.board not in board:
+ skip()
+
def no_cpython_compat():
try:
try: