Skip to content

Commit 0796e69

Browse files
author
Release Manager
committed
gh-35831: Support setuptools 68.0.0 In setuptools 68.0.0 deprecation warnings for pkg_resources are issued with `stacklevel=2` so they belong to the calling module instead of pkg_resources. The deprecation warning we filter is reported on `setuptools.sandbox`. We fix this, otherwise lots of doctests will fail. URL: #35831 Reported by: Gonzalo Tornaría Reviewer(s): Matthias Köppe
2 parents 63eb1d7 + 472074f commit 0796e69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage/all__sagemath_repl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
warnings.filterwarnings('ignore', category=DeprecationWarning,
4545
message='pkg_resources is deprecated as an API|'
4646
'Deprecated call to `pkg_resources.declare_namespace(.*)`',
47-
module='pkg_resources')
47+
module='pkg_resources|setuptools.sandbox')
4848
warnings.filterwarnings('ignore', category=DeprecationWarning,
4949
message='msvccompiler is deprecated and slated to be removed',
5050
module='distutils.msvccompiler')

0 commit comments

Comments
 (0)