mirror of
https://github.com/hakril/PythonForWindows
synced 2026-06-08 14:31:45 +00:00
Trying to improve stability in CI with more sleep()
This commit is contained in:
+2
-1
@@ -44,7 +44,8 @@ def generate_pop_and_exit_fixtures(proc_popers, ids=[], dwCreationFlags=DEFAULT_
|
||||
def pop_and_exit_process(request):
|
||||
proc_poper = request.param
|
||||
proc = proc_poper(dwCreationFlags=dwCreationFlags)
|
||||
time.sleep(0.1) # Give time to the process to load :)
|
||||
time.sleep(0.2) # Give time to the process to load :)
|
||||
print("Created {0} ({1}bits) for test".format(proc, proc.bitness))
|
||||
yield weakref.proxy(proc) # provide the fixture value
|
||||
try:
|
||||
proc.exit(0)
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import pytest
|
||||
import textwrap
|
||||
import ctypes
|
||||
import time
|
||||
|
||||
import windows
|
||||
import windows.generated_def as gdef
|
||||
@@ -97,6 +98,7 @@ def test_self_iat_hook_multithread():
|
||||
def test_remote_iat_hook(proc32_64):
|
||||
proc32_64.execute_python("import windows")
|
||||
proc32_64.execute_python("windows.utils.create_console()")
|
||||
time.sleep(0.5) # Let all initialisation finish (runtime windows + remote python)
|
||||
|
||||
code = """
|
||||
import windows.generated_def as gdef
|
||||
|
||||
Reference in New Issue
Block a user