Skip to content

Commit

Permalink
fixed failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nwlandry committed May 6, 2024
1 parent 40020f0 commit fd9e751
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/readwrite/test_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,4 +262,4 @@ def test_write_json(edgelist1):
# duplicate edge IDs when casting to a string
badH.add_edges_from({"2": [1, 2, 3], 2: [4, 5, 6]})
with pytest.raises(XGIError):
xgi.write_json(badH)
xgi.write_json(badH, "test.json")
2 changes: 1 addition & 1 deletion xgi/readwrite/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def write_json(H, path):
The specified hypergraph object
path: string
The path of the file to read from
Raises
------
XGIError
Expand Down

0 comments on commit fd9e751

Please sign in to comment.