Skip to content

Commit

Permalink
test_hierarchy: compat with new NetworkX exception
Browse files Browse the repository at this point in the history
  • Loading branch information
ricklupton committed Jul 26, 2024
1 parent b2807ae commit fd076f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_hierarchy.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ def test_hierarchy():
assert h('East Anglia') == "location in ['Cambridge', 'Ely', 'Escape \"']"
assert h('*') == None

with pytest.raises(KeyError):
with pytest.raises((KeyError, nx.NetworkXError)):
h('unknown')

0 comments on commit fd076f0

Please sign in to comment.