Skip to content

Commit c93bab2

Browse files
committed
decode json models on 3.5
1 parent ed413b8 commit c93bab2

File tree

8 files changed

+77
-77
lines changed

8 files changed

+77
-77
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ script:
3737
else
3838
true
3939
fi
40-
- 'if [[ $GROUP == python ]]; then pytest jupyter_server; fi'
40+
- 'if [[ $GROUP == python ]]; then pytest; fi'
4141
- |
4242
if [[ $GROUP == docs ]]; then
4343
EXIT_STATUS=0

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ install:
2525
- cmd: pip install .[test]
2626

2727
test_script:
28-
- pytest jupyter_server
28+
- pytest

tests/services/config/test_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ async def test_create_retrieve_config(fetch):
1818
method='GET',
1919
)
2020
assert response2.code == 200
21-
assert json.loads(response2.body) == sample
21+
assert json.loads(response2.body.decode()) == sample
2222

2323

2424
async def test_modify(fetch):
@@ -56,7 +56,7 @@ async def test_modify(fetch):
5656
)
5757

5858
assert response2.code == 200
59-
assert json.loads(response2.body) == diff
59+
assert json.loads(response2.body.decode()) == diff
6060

6161

6262
async def test_get_unknown(fetch):
@@ -65,4 +65,4 @@ async def test_get_unknown(fetch):
6565
method='GET',
6666
)
6767
assert response.code == 200
68-
assert json.loads(response.body) == {}
68+
assert json.loads(response.body.decode()) == {}

0 commit comments

Comments
 (0)