Add py3*-no-ext test env

This commit is contained in:
messense 2017-05-15 09:49:25 +08:00
parent fa1b7de52a
commit 66fcb0cc8f
No known key found for this signature in database
GPG Key ID: BB41A8A2C716CCA9
2 changed files with 18 additions and 8 deletions

View File

@ -2,7 +2,11 @@ import random
from sanic import Sanic
from sanic.response import json
from ujson import loads
try:
from ujson import loads
except ImportError:
from json import loads
def test_storage():

20
tox.ini
View File

@ -1,17 +1,23 @@
[tox]
envlist = py35, py36, flake8, check
envlist = py35, py36, {py35,py36}-no-ext, flake8, check
[travis]
python =
3.5: py35, flake8, check
3.6: py36, flake8, check
3.5: py35, py35-no-ext, flake8, check
3.6: py36, py36-no-ext, flake8, check
[testenv]
usedevelop = True
setenv =
{py35,py36}-no-ext: SANIC_NO_UJSON=1
{py35,py36}-no-ext: SANIC_NO_UVLOOP=1
deps =
-rrequirements-dev.txt
coverage
pytest
pytest-sugar
aiohttp==1.3.5
chardet<=2.3.0
beautifulsoup4
commands =
pytest tests {posargs}
coverage erase