diff options
author | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2023-12-08 17:30:19 +0100 |
---|---|---|
committer | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2023-12-08 18:16:24 +0100 |
commit | 4c65ac96f8b021c107783adce3e8afe4f8edee6e (patch) | |
tree | b951d272fe8d814ce0d67c610ad3e7f3a658b388 /test/functional/feature_init.py | |
parent | 37324ae3dfb0e50daaf752dc863a880559fa4637 (diff) |
test: detect OS consistently using `platform.system()`
Diffstat (limited to 'test/functional/feature_init.py')
-rwxr-xr-x | test/functional/feature_init.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/feature_init.py b/test/functional/feature_init.py index 142d75a851..268009b0f4 100755 --- a/test/functional/feature_init.py +++ b/test/functional/feature_init.py @@ -3,8 +3,8 @@ # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Stress tests related to node initialization.""" -import os from pathlib import Path +import platform import shutil from test_framework.test_framework import BitcoinTestFramework, SkipTest @@ -36,7 +36,7 @@ class InitStressTest(BitcoinTestFramework): # and other approaches (like below) don't work: # # os.kill(node.process.pid, signal.CTRL_C_EVENT) - if os.name == 'nt': + if platform.system() == 'Windows': raise SkipTest("can't SIGTERM on Windows") self.stop_node(0) |