Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
085a2943
Commit
085a2943
authored
Jan 03, 2019
by
Yannick Jadoul
Committed by
Wenzel Jakob
Jan 03, 2019
Browse files
Increasing timeout in test_gil_scoped.py to get AppVeyor to succeed
parent
0ca6867e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tests/test_gil_scoped.py
tests/test_gil_scoped.py
+3
-3
No files found.
tests/test_gil_scoped.py
View file @
085a2943
...
...
@@ -4,13 +4,13 @@ from pybind11_tests import gil_scoped as m
def
_run_in_process
(
target
,
*
args
,
**
kwargs
):
"""Runs target in process and returns its exitcode after 1s (None if still alive)."""
"""Runs target in process and returns its exitcode after 1
0
s (None if still alive)."""
process
=
multiprocessing
.
Process
(
target
=
target
,
args
=
args
,
kwargs
=
kwargs
)
process
.
daemon
=
True
try
:
process
.
start
()
# Do not need to wait much, 1s should be more than enough.
process
.
join
(
timeout
=
1
)
# Do not need to wait much, 1
0
s should be more than enough.
process
.
join
(
timeout
=
1
0
)
return
process
.
exitcode
finally
:
if
process
.
is_alive
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment