@@ -9,25 +9,36 @@ 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+ # Until Python 3.9 support is dropped, we can't use `encoding="locale"` directly,
17+ # but we'd also prefer switching to `encoding="utf-8"` wherever possible
18+ # in preparation of https://peps.python.org/pep-0686/
19+ # In the mean time, it causes too much noise in tests
20+ ignore:' encoding' argument not specified::setuptools
21+ ignore:' encoding' argument not specified::pkg_resources
22+
1223# # upstream
1324
1425# Ensure ResourceWarnings are emitted
1526default::ResourceWarning
1627
28+ # subprocess.check_output still warns with EncodingWarning even with encoding set
29+ ignore:' encoding' argument not specified::setuptools.tests.environment
30+
1731# realpython/pytest-mypy#152
1832ignore:' encoding' argument not specified::pytest_mypy
1933
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
34+ # pytest-dev/pytest # TODO: Raise issue upstream
35+ ignore:' encoding' argument not specified::_pytest
2836
2937# # end upstream
3038
39+ # pypa/distutils#236
40+ ignore:' encoding' argument not specified::distutils
41+
3142# https://github.com/pypa/setuptools/issues/1823
3243ignore:bdist_wininst command is deprecated
3344# Suppress this error; unimportant for CI tests
@@ -68,11 +79,6 @@ filterwarnings=
6879# https://github.com/pypa/setuptools/issues/3655
6980ignore:The --rsyncdir command line argument and rsyncdirs config variable are deprecated.:DeprecationWarning
7081
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-
7682# Avoid errors when testing pkg_resources.declare_namespace
7783ignore:.*pkg_resources\.declare_namespace.*:DeprecationWarning
7884
0 commit comments