From 1b0d1577f5ea4ce58983c7e3008f7e808b9bb707 Mon Sep 17 00:00:00 2001 From: Pierrick Hymbert Date: Sun, 10 Mar 2024 09:03:07 +0100 Subject: [PATCH] Use builti Co-authored-by: Jared Van Bortel --- examples/server/tests/features/steps/steps.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/server/tests/features/steps/steps.py b/examples/server/tests/features/steps/steps.py index 62e0b1155..ad5cdfdac 100644 --- a/examples/server/tests/features/steps/steps.py +++ b/examples/server/tests/features/steps/steps.py @@ -1058,9 +1058,9 @@ def start_server_background(context): print(f"starting server with: {context.server_path} {server_args}\n") flags = 0 if 'nt' == os.name: - flags |= 0x00000008 # DETACHED_PROCESS - flags |= 0x00000200 # CREATE_NEW_PROCESS_GROUP - flags |= 0x08000000 # CREATE_NO_WINDOW + flags |= subprocess.DETACHED_PROCESS + flags |= subprocess.CREATE_NEW_PROCESS_GROUP + flags |= subprocess.CREATE_NO_WINDOW pkwargs = { 'close_fds': True, # close stdin/stdout/stderr on child