summaryrefslogtreecommitdiff
path: root/tests/unix/mod_os.py
diff options
context:
space:
mode:
authorstijn <stijn@ignitron.net>2023-08-23 15:57:23 +0200
committerDamien George <damien@micropython.org>2023-09-01 14:08:58 +1000
commit83f2f36b9e5fea90a947aada5e1c8065468c0e70 (patch)
tree16f30234cfb0924cfc0fd94badfe1a8ec63fae68 /tests/unix/mod_os.py
parentf4a6fc2c8e7250db3be540e91321299205383ec4 (diff)
tests/unix/mod_os: Make os.system() test work on windows.
The "true" command by default is unavailable on windows so use an equivalent which works on both unix and windows. Signed-off-by: stijn <stijn@ignitron.net>
Diffstat (limited to 'tests/unix/mod_os.py')
-rw-r--r--tests/unix/mod_os.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unix/mod_os.py b/tests/unix/mod_os.py
index 17554d937..f69fa45b2 100644
--- a/tests/unix/mod_os.py
+++ b/tests/unix/mod_os.py
@@ -12,7 +12,7 @@ os.unsetenv("TEST_VARIABLE")
print(os.getenv("TEST_VARIABLE"))
print(os.getenv("TEST_VARIABLE", "TEST_DEFAULT_VALUE"))
-print(os.system("true"))
+print(os.system("exit 0"))
rand = os.urandom(4)
print(type(rand) is bytes, len(rand))