Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11
Commits
085a2943
Commit
085a2943
authored
Jan 03, 2019
by
Yannick Jadoul
Committed by
Wenzel Jakob
Jan 03, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increasing timeout in test_gil_scoped.py to get AppVeyor to succeed
parent
0ca6867e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
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
...
@@ -4,13 +4,13 @@ from pybind11_tests import gil_scoped as m
def
_run_in_process
(
target
,
*
args
,
**
kwargs
):
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
=
multiprocessing
.
Process
(
target
=
target
,
args
=
args
,
kwargs
=
kwargs
)
process
.
daemon
=
True
process
.
daemon
=
True
try
:
try
:
process
.
start
()
process
.
start
()
# Do not need to wait much, 1s should be more than enough.
# Do not need to wait much, 1
0
s should be more than enough.
process
.
join
(
timeout
=
1
)
process
.
join
(
timeout
=
1
0
)
return
process
.
exitcode
return
process
.
exitcode
finally
:
finally
:
if
process
.
is_alive
():
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