Skip to content

Commit bf60a6d

Browse files
authored
Merge pull request #173 from nats-io/uvloop-tests
Add uvloop to CI
2 parents 226177b + 081954c commit bf60a6d

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ sudo: true
2929
dist: xenial
3030

3131
jobs:
32+
include:
33+
- name: "Python: 3.8/uvloop"
34+
python: "3.8"
35+
install:
36+
- pip install uvloop
3237
allow_failures:
3338
python:
3439
- "3.6"

tests/utils.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
import http.client
99
from functools import wraps
1010

11+
try:
12+
import uvloop
13+
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
14+
except:
15+
pass
16+
1117

1218
class Gnatsd:
1319
def __init__(

0 commit comments

Comments
 (0)