We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99d6f9d commit 972cdceCopy full SHA for 972cdce
.travis.yml
@@ -3,7 +3,13 @@ sudo: false
3
cache: false
4
python:
5
- '3.6'
6
-
+addons:
7
+ apt:
8
+ sources:
9
+ - deadsnakes
10
+ packages:
11
+ - python3.5
12
+ - python3.5-dev
13
install:
14
- pip install -rrequirements-tests.txt
15
tests/test_views.py
@@ -8,6 +8,9 @@
def _format_response(response: Text = "") -> Union[List, Dict]:
+ # python3.5 compatibility
+ if isinstance(response, bytes):
+ response = str(response, encoding="utf-8")
return json.loads(response)
16
tox.ini
@@ -1,5 +1,5 @@
1
[tox]
2
-envlist = py36
+envlist = py36,py35
[testenv]
deps =
0 commit comments