From fdd5d511eb10c7475fe5759f8acbb00c0058b096 Mon Sep 17 00:00:00 2001 From: Romain Dorgueil Date: Mon, 26 Dec 2016 09:19:50 +0100 Subject: [PATCH] fixing tests under py3.5 --- setup.cfg | 5 +++-- tests/io/test_json.py | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/setup.cfg b/setup.cfg index d7f6981..c0f0846 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,6 @@ +[metadata] +description-file = README.rst + [bdist_wheel] universal=1 -[metadata] -description-file = README.rst diff --git a/tests/io/test_json.py b/tests/io/test_json.py index 1c4716b..0e3a2f9 100644 --- a/tests/io/test_json.py +++ b/tests/io/test_json.py @@ -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):