summaryrefslogtreecommitdiff
path: root/networkx/algorithms/components/tests/test_biconnected.py
diff options
context:
space:
mode:
authorKelly Boothby <boothby@dwavesys.com>2021-06-20 22:42:01 -0700
committerGitHub <noreply@github.com>2021-06-21 01:42:01 -0400
commit89a54703fafbb67d5a79b38238f7478ef62a51eb (patch)
tree7afb22651fc7f90f22f63c29af3bf6496f313cdc /networkx/algorithms/components/tests/test_biconnected.py
parent1f96b154a86588a7ef3d9b3637dd66749b1de71f (diff)
downloadnetworkx-89a54703fafbb67d5a79b38238f7478ef62a51eb.tar.gz
Remove decorator dependency (#4739)
* added argmap decorator * removed most dependency on decorator * removed last reference to decorator? * Made the compilation of argmap-decorated functions lazy to reduce import time. * black * reworked try_finally to make cleanup cleaner * first pass at documentation; general cleanup * incorporated dschult's comments * rest formatted docstrings * added unit tests and fixed a few bugs that cropped up * Apply suggestions from code review Co-authored-by: Ross Barnowski <rossbar@berkeley.edu> Co-authored-by: Dan Schult <dschult@colgate.edu> * Exapnd docstrings for decorators.py * * refactored try_finally into a keyword-only argument * more tweaks to documentation re: @stefanv's comments * additional unit test for signature-clobbering decorators * spellcheck my txt and expand new test to help me grok it * rehash docstrings for sphinx * rewrite docs to provide some examples where argmap used without @argmap * doc tweak * last touches * documentation clarifications * run black * doc review * remove decorator module from github workflows and INSTALL.rst * add text to release_dev to describe highlights and improvements here Co-authored-by: Ross Barnowski <rossbar@berkeley.edu> Co-authored-by: Dan Schult <dschult@colgate.edu>
Diffstat (limited to 'networkx/algorithms/components/tests/test_biconnected.py')
-rw-r--r--networkx/algorithms/components/tests/test_biconnected.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/networkx/algorithms/components/tests/test_biconnected.py b/networkx/algorithms/components/tests/test_biconnected.py
index 3b2f1e90..80faea0e 100644
--- a/networkx/algorithms/components/tests/test_biconnected.py
+++ b/networkx/algorithms/components/tests/test_biconnected.py
@@ -238,7 +238,10 @@ def test_null_graph():
def test_connected_raise():
DG = nx.DiGraph()
- pytest.raises(NetworkXNotImplemented, nx.biconnected_components, DG)
- pytest.raises(NetworkXNotImplemented, nx.biconnected_component_edges, DG)
- pytest.raises(NetworkXNotImplemented, nx.articulation_points, DG)
+ with pytest.raises(NetworkXNotImplemented):
+ next(nx.biconnected_components(DG))
+ with pytest.raises(NetworkXNotImplemented):
+ next(nx.biconnected_component_edges(DG))
+ with pytest.raises(NetworkXNotImplemented):
+ next(nx.articulation_points(DG))
pytest.raises(NetworkXNotImplemented, nx.is_biconnected, DG)