diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2020-09-14 19:05:13 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2020-09-14 19:05:13 -0400 |
commit | f01d2719802d3345332b761fb1c62fa4afd212c9 (patch) | |
tree | 4699b9097e29ef07e915dea53cedad1537ace744 /conftest.py | |
parent | f84c145482d273cd6b90e20012443edcfd59ff0d (diff) | |
download | python-setuptools-git-f01d2719802d3345332b761fb1c62fa4afd212c9.tar.gz |
Enable flake8 and cov plugins only when installed. Avoid installing in PyPy.
Diffstat (limited to 'conftest.py')
-rw-r--r-- | conftest.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/conftest.py b/conftest.py index 25537f56..90090253 100644 --- a/conftest.py +++ b/conftest.py @@ -19,24 +19,6 @@ collect_ignore = [ ] -def pytest_configure(config): - disable_coverage_on_pypy(config) - - -def disable_coverage_on_pypy(config): - """ - Coverage makes tests on PyPy unbearably slow, so disable it. - """ - if '__pypy__' not in sys.builtin_module_names: - return - - # Recommended at pytest-dev/pytest-cov#418 - cov = config.pluginmanager.get_plugin('_cov') - cov.options.no_cov = True - if cov.cov_controller: - cov.cov_controller.pause() - - if sys.version_info < (3,): collect_ignore.append('setuptools/lib2to3_ex.py') collect_ignore.append('setuptools/_imp.py') |