Skip to content

Commit

Permalink
fix test_intersection
Browse files Browse the repository at this point in the history
  • Loading branch information
eriknw committed May 2, 2023
1 parent 47083ba commit 773ac7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion networkx/algorithms/operators/tests/test_binary.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def test_intersection():
I2 = nx.intersection(G2, H2)
assert set(I2.nodes()) == {1, 2, 3, 4}
assert sorted(I2.edges()) == [(2, 3)]
if os.environ.get("NETWORKX_GRAPH_CONVERT", None) != "nx-loopback":
# Only test if not performing auto convert testing of backend implementations
if os.environ.get("NETWORKX_GRAPH_CONVERT", None) is None:
with pytest.raises(TypeError):
nx.intersection(G2, H)
with pytest.raises(TypeError):
Expand Down

0 comments on commit 773ac7e

Please sign in to comment.