Skip to content

Commit fd09925

Browse files
levesquejfhaotianw465
authored andcommitted
Avoiding Django 2.0 until tests rewrite and ignoring TestServer class in tests (#10)
1 parent 24ca960 commit fd09925

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

tests/ext/aiohttp/test_aiohttp.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class CustomStubbedEmitter(UDPEmitter):
1919
"""
2020
Custom stubbed emitter which stores all segments instead of the last one
2121
"""
22+
2223
def __init__(self, daemon_address='127.0.0.1:2000'):
2324
super(CustomStubbedEmitter, self).__init__(daemon_address)
2425
self.local = []
@@ -37,6 +38,8 @@ class TestServer(object):
3738
"""
3839
Simple class to hold a copy of the event loop
3940
"""
41+
__test__ = False
42+
4043
def __init__(self, loop):
4144
self._loop = loop
4245

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist =
2+
envlist =
33
py{27,34,35,36}
44
coverage-report
55

@@ -12,8 +12,8 @@ deps =
1212
botocore
1313
requests
1414
flask >= 0.10
15-
# the sdk dosen't support earlier version of django
16-
django >= 1.10
15+
# the sdk doesn't support earlier version of django
16+
django >= 1.10, <2.0
1717
# Python3.5+ only deps
1818
py{35,36}: aiohttp >= 2.3.0
1919
py{35,36}: pytest-aiohttp

0 commit comments

Comments
 (0)