@@ -9,6 +9,18 @@ filterwarnings=
99# Fail on warnings
1010error
1111
12+ # Workarounds for pypa/setuptools#3810
13+ # Can't use EncodingWarning as it doesn't exist on Python 3.9.
14+ # These warnings only appear on Python 3.10+
15+ default:' encoding' argument not specified
16+
17+ # pypa/distutils#236
18+ ignore:' encoding' argument not specified::distutils
19+ ignore:' encoding' argument not specified::setuptools._distutils
20+
21+ # subprocess.check_output still warns with EncodingWarning even with encoding set
22+ ignore:' encoding' argument not specified::setuptools.tests.environment
23+
1224# # upstream
1325
1426# Ensure ResourceWarnings are emitted
@@ -17,14 +29,8 @@ filterwarnings=
1729# realpython/pytest-mypy#152
1830ignore:' encoding' argument not specified::pytest_mypy
1931
20- # python/cpython#100750
21- ignore:' encoding' argument not specified::platform
22-
23- # pypa/build#615
24- ignore:' encoding' argument not specified::build.env
25-
26- # dateutil/dateutil#1284
27- ignore:datetime.datetime.utcfromtimestamp:DeprecationWarning:dateutil.tz.tz
32+ # pytest-dev/pytest # TODO: Raise issue upstream
33+ ignore:' encoding' argument not specified::_pytest
2834
2935# # end upstream
3036
@@ -68,11 +74,6 @@ filterwarnings=
6874# https://github.com/pypa/setuptools/issues/3655
6975ignore:The --rsyncdir command line argument and rsyncdirs config variable are deprecated.:DeprecationWarning
7076
71- # Workarounds for pypa/setuptools#3810
72- # Can't use EncodingWarning as it doesn't exist on Python 3.9
73- default:' encoding' argument not specified
74- default:UTF-8 Mode affects locale.getpreferredencoding().
75-
7677# Avoid errors when testing pkg_resources.declare_namespace
7778ignore:.*pkg_resources\.declare_namespace.*:DeprecationWarning
7879
0 commit comments