Skip to content

Commit

Permalink
tests: Adapt TestServer blacklist to Python version
Browse files Browse the repository at this point in the history
Based on knowledge from travis_setup.sh
  • Loading branch information
hartwork committed Dec 9, 2019
1 parent 6f5e1af commit 227d4ff
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/test_server.py
Expand Up @@ -98,6 +98,20 @@ def test_simple(self):

blacklist = ['cgi', 'flup', 'gae']

if sys.version_info.major == 2:
blacklist += [
'uvloop',
]
else:
blacklist += [
'bjoern',
'fapws3',
'flup',
'gevent',
'rocket',
]


for name in set(server_names) - set(blacklist):
classname = 'TestServerAdapter_'+name
setattr(sys.modules[__name__], classname,
Expand Down

0 comments on commit 227d4ff

Please sign in to comment.