Skip to content

Commit 472074f

Browse files
committed
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.
1 parent 3230f00 commit 472074f

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)