fixing tests under py3.5
This commit is contained in:
@ -1,5 +1,6 @@
|
|||||||
|
[metadata]
|
||||||
|
description-file = README.rst
|
||||||
|
|
||||||
[bdist_wheel]
|
[bdist_wheel]
|
||||||
universal=1
|
universal=1
|
||||||
|
|
||||||
[metadata]
|
|
||||||
description-file = README.rst
|
|
||||||
|
|||||||
@ -10,7 +10,7 @@ class ContextMock:
|
|||||||
|
|
||||||
def test_write_json_to_file(tmpdir):
|
def test_write_json_to_file(tmpdir):
|
||||||
file = tmpdir.join('output.json')
|
file = tmpdir.join('output.json')
|
||||||
json_writer = to_json(file)
|
json_writer = to_json(str(file))
|
||||||
context = ContextMock()
|
context = ContextMock()
|
||||||
|
|
||||||
get_initializer(json_writer)(context)
|
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):
|
def test_write_json_without_initializer_should_not_work(tmpdir):
|
||||||
file = tmpdir.join('output.json')
|
file = tmpdir.join('output.json')
|
||||||
json_writer = to_json(file)
|
json_writer = to_json(str(file))
|
||||||
|
|
||||||
context = ContextMock()
|
context = ContextMock()
|
||||||
with pytest.raises(AttributeError):
|
with pytest.raises(AttributeError):
|
||||||
|
|||||||
Reference in New Issue
Block a user