diff options
Diffstat (limited to 'tests/test_json.py')
-rw-r--r-- | tests/test_json.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_json.py b/tests/test_json.py index 1cc448c..0965a93 100644 --- a/tests/test_json.py +++ b/tests/test_json.py @@ -1411,7 +1411,8 @@ def test_set_path(client): with open(jsonfile, "w+") as fp: fp.write(json.dumps({"hello": "world"})) - open(nojsonfile, "a+").write("hello") + with open(nojsonfile, "a+") as fp: + fp.write("hello") result = {jsonfile: True, nojsonfile: False} assert client.json().set_path(Path.root_path(), root) == result |