We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6eb9b2 commit e76429cCopy full SHA for e76429c
heudiconv/tests/test_utils.py
@@ -77,7 +77,7 @@ def test_load_json(tmp_path, capsys):
77
invalid_json_file.write_text(icontent)
78
79
with pytest.raises(JSONDecodeError):
80
- load_json(invalid_json_file)
+ load_json(str(invalid_json_file))
81
captured = capsys.readouterr()
82
assert ifname in captured.out
83
@@ -86,7 +86,7 @@ def test_load_json(tmp_path, capsys):
86
vfname = "valid.json"
87
valid_json_file = tmp_path / vfname
88
89
- with open(valid_json_file, "w") as vj:
+ with open(str(valid_json_file), "w") as vj:
90
json.dump(vcontent, vj)
91
92
- assert load_json(valid_json_file) == vcontent
+ assert load_json(str(valid_json_file)) == vcontent
0 commit comments