From 83f2f36b9e5fea90a947aada5e1c8065468c0e70 Mon Sep 17 00:00:00 2001 From: stijn Date: Wed, 23 Aug 2023 15:57:23 +0200 Subject: [PATCH] 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 --- tests/unix/mod_os.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unix/mod_os.py b/tests/unix/mod_os.py index 17554d9375..f69fa45b2b 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))