Use libev when running test
This commit is contained in:
parent
10c1986c54
commit
79c1cd15ab
1 changed files with 4 additions and 0 deletions
|
@ -13,6 +13,10 @@ import pytest
|
||||||
import mock
|
import mock
|
||||||
|
|
||||||
import gevent
|
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
|
import gevent.event
|
||||||
from gevent import monkey
|
from gevent import monkey
|
||||||
monkey.patch_all(thread=False, subprocess=False)
|
monkey.patch_all(thread=False, subprocess=False)
|
||||||
|
|
Loading…
Reference in a new issue