Use libev when running test

This commit is contained in:
shortcutme 2019-12-17 14:32:17 +01:00
parent 10c1986c54
commit 79c1cd15ab
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,10 @@ import pytest
import mock
import gevent
if "libev" not in str(gevent.config.loop):
# Workaround for random crash when libuv used with threads
gevent.config.loop = "libev-cext"
import gevent.event
from gevent import monkey
monkey.patch_all(thread=False, subprocess=False)