Skip to content

Make sure that backend testing in multiprocessing is done with a timeout #3741

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 1, 2014
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Wrap gtk3cairo test in try except
  • Loading branch information
jenshnielsen committed Oct 29, 2014
commit fd9940f46d89e40c25742c0c91ee4e33ffda4478
13 changes: 9 additions & 4 deletions setupext.py
Original file line number Diff line number Diff line change
Expand Up @@ -1853,10 +1853,15 @@ def check_requirements(self):
p = multiprocessing.Pool()
except:
return "unknown (can not use multiprocessing to determine)"
res = p.map_async(backend_gtk3cairo_internal_check, [0])
success, msg = res.get(timeout=5)[0]
p.close()
p.join()
try:
res = p.map_async(backend_gtk3cairo_internal_check, [0])
success, msg = res.get(timeout=5)[0]
except:
success = False
raise
finally:
p.close()
p.join()
if success:
BackendAgg.force = True

Expand Down