Skip to content

Commit

Permalink
gh-37912: Filter "RuntimeWarning: networkx backend defined more than …
Browse files Browse the repository at this point in the history
…once for networkx"

    
<!-- ^ Please provide a concise and informative title. -->
<!-- ^ Don't put issue numbers in the title, do this in the PR
description below. -->
<!-- ^ For example, instead of "Fixes #12345" use "Introduce new method
to calculate 1 + 2". -->
<!-- v Describe your changes below in detail. -->
<!-- v Why is this change required? What problem does it solve? -->
<!-- v If this PR resolves an open issue, please link to it here. For
example, "Fixes #12345". -->

- Fixes #37863

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [ ] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - #12345: short description why this is a dependency -->
<!-- - #34567: ... -->
    
URL: #37912
Reported by: Matthias Köppe
Reviewer(s): David Coudert, Kwankyu Lee
  • Loading branch information
Release Manager committed May 31, 2024
2 parents 5af1f8a + 789d71a commit e926e64
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/sage/all__sagemath_repl.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@
message=r"Pickle, copy, and deepcopy support will be "
r"removed from itertools in Python 3.14.")

# triggered in Python 3.9 on Redhat-based distributions
# https://github.com/sagemath/sage/issues/37863
# https://github.com/networkx/networkx/issues/7101
warnings.filterwarnings('ignore', category=RuntimeWarning,
message="networkx backend defined more than once: nx-loopback")

from sage.all__sagemath_objects import *
from sage.all__sagemath_environment import *
Expand Down

0 comments on commit e926e64

Please sign in to comment.