Skip to content

Commit

Permalink
TST: category kwarg not available until Python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
rossbar committed Feb 13, 2024
1 parent 8ed9cf5 commit bb1ba83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion networkx/drawing/tests/test_pylab.py
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ def test_no_warning_on_default_draw_arrowstyle(draw_fn):
# See gh-7284
fig, ax = plt.subplots()
G = nx.cycle_graph(5)
with warnings.catch_warnings(record=True, category=UserWarning) as w:
with warnings.catch_warnings(record=True) as w:
draw_fn(G, ax=ax)
assert len(w) == 0

Expand Down

0 comments on commit bb1ba83

Please sign in to comment.