diff options
author | Damien George <damien@micropython.org> | 2025-09-15 13:41:10 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-10-02 00:37:29 +1000 |
commit | 9a37e2feb93079dc3154db3f891d21e4fd80b0fa (patch) | |
tree | ea244725116b3e9e4550b059355fbcf25ea5c907 /tests/ports/unix/mod_os.py | |
parent | 9b5e20dc20b54df432460d81a3a6189f6d601226 (diff) |
tests/ports/unix: Improve skip detection for os.getenv and time module.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/ports/unix/mod_os.py')
-rw-r--r-- | tests/ports/unix/mod_os.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ports/unix/mod_os.py b/tests/ports/unix/mod_os.py index f69fa45b2..468f6badd 100644 --- a/tests/ports/unix/mod_os.py +++ b/tests/ports/unix/mod_os.py @@ -1,6 +1,9 @@ # This module is not entirely compatible with CPython import os +if not hasattr(os, "getenv"): + print("SKIP") + raise SystemExit os.putenv("TEST_VARIABLE", "TEST_VALUE") |