Skip to content

Commit 839a6e9

Browse files
committed
Ignore deprecation warnings triggered by pythran 0.12.1
These happen with python 3.11, setuptools 67.6.1, numpy 1.24.2. When pythran 0.12.1 is installed, I get 24 doctest failures due to deprecation warnings; they are all gone with this commit.
1 parent 5dd80aa commit 839a6e9

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/sage/all__sagemath_repl.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,17 @@
3737
warnings.filterwarnings('ignore', category=DeprecationWarning,
3838
module='(.*[.]_vendor[.])?packaging')
3939

40-
# Ignore numpy warnings triggered by pythran
40+
# Ignore a few warnings triggered by pythran 0.12.1
4141
warnings.filterwarnings('ignore', category=DeprecationWarning,
42-
module='pythran')
42+
message='\n\n `numpy.distutils` is deprecated since NumPy 1.23.0',
43+
module='pythran.dist')
44+
warnings.filterwarnings('ignore', category=DeprecationWarning,
45+
message='pkg_resources is deprecated as an API|'
46+
'Deprecated call to `pkg_resources.declare_namespace(.*)`',
47+
module='pkg_resources')
48+
warnings.filterwarnings('ignore', category=DeprecationWarning,
49+
message='msvccompiler is deprecated and slated to be removed',
50+
module='distutils.msvccompiler')
4351

4452
warnings.filterwarnings('ignore', category=DeprecationWarning,
4553
message='The distutils(.sysconfig module| package) is deprecated',

0 commit comments

Comments
 (0)