Skip to content

Commit e76429c

Browse files
committed
fix remaning py2 errors
1 parent e6eb9b2 commit e76429c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

heudiconv/tests/test_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def test_load_json(tmp_path, capsys):
7777
invalid_json_file.write_text(icontent)
7878

7979
with pytest.raises(JSONDecodeError):
80-
load_json(invalid_json_file)
80+
load_json(str(invalid_json_file))
8181
captured = capsys.readouterr()
8282
assert ifname in captured.out
8383

@@ -86,7 +86,7 @@ def test_load_json(tmp_path, capsys):
8686
vfname = "valid.json"
8787
valid_json_file = tmp_path / vfname
8888

89-
with open(valid_json_file, "w") as vj:
89+
with open(str(valid_json_file), "w") as vj:
9090
json.dump(vcontent, vj)
9191

92-
assert load_json(valid_json_file) == vcontent
92+
assert load_json(str(valid_json_file)) == vcontent

0 commit comments

Comments
 (0)