fixing tests under py3.5

This commit is contained in:
Romain Dorgueil
2016-12-26 09:19:50 +01:00
parent f33a6a0558
commit fdd5d511eb
2 changed files with 5 additions and 4 deletions

View File

@ -1,5 +1,6 @@
[metadata]
description-file = README.rst
[bdist_wheel]
universal=1
[metadata]
description-file = README.rst

View File

@ -10,7 +10,7 @@ class ContextMock:
def test_write_json_to_file(tmpdir):
file = tmpdir.join('output.json')
json_writer = to_json(file)
json_writer = to_json(str(file))
context = ContextMock()
get_initializer(json_writer)(context)
@ -30,7 +30,7 @@ def test_write_json_to_file(tmpdir):
def test_write_json_without_initializer_should_not_work(tmpdir):
file = tmpdir.join('output.json')
json_writer = to_json(file)
json_writer = to_json(str(file))
context = ContextMock()
with pytest.raises(AttributeError):