8cc1052d1256c4025c15f315f59f6a7e2ac324a9
[platform/upstream/python3-setuptools.git] / pytest.ini
1 [pytest]
2 norecursedirs=dist build .tox .eggs
3 addopts=
4         --doctest-modules
5         --doctest-glob=pkg_resources/api_tests.txt
6         -r sxX
7 doctest_optionflags=ALLOW_UNICODE ELLIPSIS
8 filterwarnings=
9         # Fail on warnings
10         error
11
12         ## upstream
13         # Suppress deprecation warning in flake8
14         ignore:SelectableGroups dict interface is deprecated::flake8
15         # Suppress deprecation warning in pypa/packaging#433
16         ignore:The distutils package is deprecated::packaging.tags
17         ## end upstream
18
19         # https://github.com/pypa/setuptools/issues/1823
20         ignore:bdist_wininst command is deprecated
21         # Suppress this error; unimportant for CI tests
22         ignore:Extraction path is writable by group/others:UserWarning
23         # Suppress weird RuntimeWarning.
24         ignore:Parent module 'setuptools' not found while handling absolute import:RuntimeWarning
25         # Suppress use of bytes for filenames on Windows until fixed #2016
26         ignore:The Windows bytes API has been deprecated:DeprecationWarning
27
28         # https://github.com/pypa/setuptools/issues/2823
29         ignore:setuptools.installer is deprecated.
30
31         # https://github.com/pypa/setuptools/issues/917
32         ignore:setup.py install is deprecated.
33         ignore:easy_install command is deprecated.
34
35         # https://github.com/pypa/setuptools/issues/2497
36         ignore:.* is an invalid version and will not be supported::pkg_resources
37
38         # https://github.com/pypa/setuptools/pull/2865#issuecomment-965700112
39         # ideally would apply to Python 3.10+ when
40         # SETUPTOOLS_USE_DISTUTILS=stdlib but for
41         # https://github.com/pytest-dev/pytest/discussions/9296
42         ignore:The distutils.sysconfig module is deprecated, use sysconfig instead
43
44         # Workaround for pypa/setuptools#2868
45         # ideally would apply to PyPy only but for
46         # https://github.com/pytest-dev/pytest/discussions/9296
47         ignore:Distutils was imported before setuptools
48         ignore:Setuptools is replacing distutils