diff --git a/tests/io/test_json.py b/tests/io/test_json.py index bc10d57..c53ff0c 100644 --- a/tests/io/test_json.py +++ b/tests/io/test_json.py @@ -17,7 +17,7 @@ def test_write_json_to_file(tmpdir): context.step() context.stop() - assert fs.open(filename).read() == '[\n{"foo": "bar"}\n]' + assert fs.open(filename).read() == '[{"foo": "bar"}]' with pytest.raises(AttributeError): getattr(context, 'file')