mirror of
https://github.com/micropython/micropython.git
synced 2026-03-12 03:40:28 +01:00
tests/micropython: Improve skipping of tests using micropython module.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
# tests stack_use function in micropython module
|
||||
import micropython
|
||||
|
||||
if not hasattr(micropython, "stack_use"):
|
||||
try:
|
||||
import micropython
|
||||
|
||||
micropython.stack_use
|
||||
except (ImportError, AttributeError):
|
||||
print("SKIP")
|
||||
raise SystemExit
|
||||
|
||||
|
||||
Reference in New Issue
Block a user