From 789d71a3544a6831bf08e4e6312f55cc6b47208a Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Tue, 30 Apr 2024 19:34:49 -0700 Subject: [PATCH] src/sage/all__sagemath_repl.py: Filter networkx warning --- src/sage/all__sagemath_repl.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sage/all__sagemath_repl.py b/src/sage/all__sagemath_repl.py index ca3403e382c..d26a3fd0427 100644 --- a/src/sage/all__sagemath_repl.py +++ b/src/sage/all__sagemath_repl.py @@ -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 *