Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update test suite for Pytest v8 #7203

Merged
merged 2 commits into from
Jan 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,7 @@ def test_connected_raise(self):
with pytest.raises(NetworkXNotImplemented):
next(nx.kosaraju_strongly_connected_components(G))
with pytest.raises(NetworkXNotImplemented):
with pytest.deprecated_call():
next(nx.strongly_connected_components_recursive(G))
next(nx.strongly_connected_components_recursive(G))
pytest.raises(NetworkXNotImplemented, nx.is_strongly_connected, G)
pytest.raises(NetworkXNotImplemented, nx.condensation, G)

Expand Down
3 changes: 2 additions & 1 deletion networkx/drawing/tests/test_agraph.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Unit tests for PyGraphviz interface."""
import os
import tempfile
import warnings

import pytest

Expand Down Expand Up @@ -249,6 +250,6 @@ def test_no_warnings_raised(self):
G.add_node(0, pos=(0, 0))
G.add_node(1, pos=(1, 1))
A = nx.nx_agraph.to_agraph(G)
with pytest.warns(None) as record:
with warnings.catch_warnings(record=True) as record:
A.layout()
assert len(record) == 0