diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2021-11-12 19:37:53 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2021-11-12 19:37:53 -0500 |
commit | 26d7411464115c6170ed666e72e388d53d4b7fd2 (patch) | |
tree | 40a141e309c856e1af1df3dc2ec7699288d3d384 /conftest.py | |
parent | 342e02e7a4dbedf0e3a04c4d2d213b5340d56010 (diff) | |
parent | 77678abf97b4a8ee5e6e67b14cb21f543cd6bfd9 (diff) | |
download | python-setuptools-git-feature/local-schemes.tar.gz |
Merge branch 'main' into feature/local-schemesfeature/local-schemes
Diffstat (limited to 'conftest.py')
-rw-r--r-- | conftest.py | 32 |
1 files changed, 25 insertions, 7 deletions
diff --git a/conftest.py b/conftest.py index c0b10400..d5e851fe 100644 --- a/conftest.py +++ b/conftest.py @@ -1,11 +1,29 @@ -import platform +import sys -collect_ignore = [] +pytest_plugins = 'setuptools.tests.fixtures' -if platform.system() != 'Windows': - collect_ignore.extend([ - 'distutils/command/bdist_msi.py', - 'distutils/msvc9compiler.py', - ]) +def pytest_addoption(parser): + parser.addoption( + "--package_name", action="append", default=[], + help="list of package_name to pass to test functions", + ) + + +collect_ignore = [ + 'tests/manual_test.py', + 'setuptools/tests/mod_with_constant.py', + 'setuptools/_distutils', + '_distutils_hack', + 'setuptools/extern', + 'pkg_resources/extern', + 'pkg_resources/tests/data', + 'setuptools/_vendor', + 'pkg_resources/_vendor', +] + + +if sys.version_info < (3, 6): + collect_ignore.append('docs/conf.py') # uses f-strings + collect_ignore.append('pavement.py') |