From 3e02993c7e16acfdb95a00993ee606b7e57f7950 Mon Sep 17 00:00:00 2001 From: Marcus Ottosson Date: Tue, 6 Apr 2021 13:43:32 +0100 Subject: [PATCH] Appease the segfault gods --- run_tests.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/run_tests.py b/run_tests.py index 2283c99..249edef 100644 --- a/run_tests.py +++ b/run_tests.py @@ -44,8 +44,9 @@ else: sys.stdout.write("Skipping coveralls\n") - # Graceful exit - standalone.uninitialize() + if os.name == "nt": + # Graceful exit, only Windows seems to like this consistently + standalone.uninitialize() # Trust but verify os._exit(0 if result.success else 1)