diff --git a/pytest.ini b/pytest.ini index 1ef3fc73c29..30af49c3fbc 100644 --- a/pytest.ini +++ b/pytest.ini @@ -14,17 +14,24 @@ filterwarnings= # Ensure ResourceWarnings are emitted default::ResourceWarning + # Workarounds for pypa/setuptools#3810 + # Can't use EncodingWarning as it doesn't exist on Python 3.9 + default:'encoding' argument not specified + # subprocess.check_output still warns with EncodingWarning even with encoding set + ignore:'encoding' argument not specified::setuptools.tests.environment + # realpython/pytest-mypy#152 ignore:'encoding' argument not specified::pytest_mypy - # python/cpython#100750 - ignore:'encoding' argument not specified::platform - - # pypa/build#615 - ignore:'encoding' argument not specified::build.env + # TODO: These 3 ignores don't work, why? + # pypa/pip#12070 + ignore:'encoding' argument not specified::pip + + # pytest-dev/pytest # TODO: Raise issue upstream + ignore:'encoding' argument not specified::_pytest - # dateutil/dateutil#1284 - ignore:datetime.datetime.utcfromtimestamp:DeprecationWarning:dateutil.tz.tz + # pypa/distutils # TODO: Raise issue upstream + ignore:'encoding' argument not specified::setuptools._distutils ## end upstream @@ -68,11 +75,6 @@ filterwarnings= # https://github.com/pypa/setuptools/issues/3655 ignore:The --rsyncdir command line argument and rsyncdirs config variable are deprecated.:DeprecationWarning - # Workarounds for pypa/setuptools#3810 - # Can't use EncodingWarning as it doesn't exist on Python 3.9 - default:'encoding' argument not specified - default:UTF-8 Mode affects locale.getpreferredencoding(). - # Avoid errors when testing pkg_resources.declare_namespace ignore:.*pkg_resources\.declare_namespace.*:DeprecationWarning