summaryrefslogtreecommitdiff
path: root/networkx/algorithms/connectivity/tests/test_edge_kcomponents.py
diff options
context:
space:
mode:
Diffstat (limited to 'networkx/algorithms/connectivity/tests/test_edge_kcomponents.py')
-rw-r--r--networkx/algorithms/connectivity/tests/test_edge_kcomponents.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/networkx/algorithms/connectivity/tests/test_edge_kcomponents.py b/networkx/algorithms/connectivity/tests/test_edge_kcomponents.py
index 08aa3232..436eebca 100644
--- a/networkx/algorithms/connectivity/tests/test_edge_kcomponents.py
+++ b/networkx/algorithms/connectivity/tests/test_edge_kcomponents.py
@@ -162,8 +162,10 @@ def test_not_implemented():
pytest.raises(nx.NetworkXNotImplemented, EdgeComponentAuxGraph.construct, G)
pytest.raises(nx.NetworkXNotImplemented, nx.k_edge_components, G, k=2)
pytest.raises(nx.NetworkXNotImplemented, nx.k_edge_subgraphs, G, k=2)
- pytest.raises(nx.NetworkXNotImplemented, bridge_components, G)
- pytest.raises(nx.NetworkXNotImplemented, bridge_components, nx.DiGraph())
+ with pytest.raises(nx.NetworkXNotImplemented):
+ next(bridge_components(G))
+ with pytest.raises(nx.NetworkXNotImplemented):
+ next(bridge_components(nx.DiGraph()))
def test_general_k_edge_subgraph_quick_return():