diff options
author | Kelly Boothby <boothby@dwavesys.com> | 2021-06-20 22:42:01 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-21 01:42:01 -0400 |
commit | 89a54703fafbb67d5a79b38238f7478ef62a51eb (patch) | |
tree | 7afb22651fc7f90f22f63c29af3bf6496f313cdc /networkx/algorithms/connectivity/tests/test_edge_kcomponents.py | |
parent | 1f96b154a86588a7ef3d9b3637dd66749b1de71f (diff) | |
download | networkx-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/connectivity/tests/test_edge_kcomponents.py')
-rw-r--r-- | networkx/algorithms/connectivity/tests/test_edge_kcomponents.py | 6 |
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(): |