File tree Expand file tree Collapse file tree 2 files changed +12
-22
lines changed Expand file tree Collapse file tree 2 files changed +12
-22
lines changed Original file line number Diff line number Diff line change 1
1
import sys
2
- import warnings
3
2
4
3
5
4
pytest_plugins = 'setuptools.tests.fixtures'
@@ -28,24 +27,3 @@ def pytest_addoption(parser):
28
27
if sys .version_info < (3 , 6 ):
29
28
collect_ignore .append ('docs/conf.py' ) # uses f-strings
30
29
collect_ignore .append ('pavement.py' )
31
-
32
-
33
- if sys .version_info > (3 , 10 ):
34
- # https://github.com/pypa/setuptools/pull/2865#issuecomment-965700112
35
- warnings .filterwarnings (
36
- 'ignore' ,
37
- 'The distutils.sysconfig module is deprecated, use sysconfig instead' ,
38
- )
39
-
40
-
41
- is_pypy = '__pypy__' in sys .builtin_module_names
42
- if is_pypy :
43
- # Workaround for pypa/setuptools#2868
44
- warnings .filterwarnings (
45
- 'ignore' ,
46
- 'Distutils was imported before setuptools' ,
47
- )
48
- warnings .filterwarnings (
49
- 'ignore' ,
50
- 'Setuptools is replacing distutils' ,
51
- )
Original file line number Diff line number Diff line change @@ -34,3 +34,15 @@ filterwarnings=
34
34
35
35
# https://github.com/pypa/setuptools/issues/2497
36
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
You can’t perform that action at this time.
0 commit comments