summaryrefslogtreecommitdiff
path: root/conftest.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2020-09-15 19:39:40 -0400
committerGitHub <noreply@github.com>2020-09-15 19:39:40 -0400
commit662816b65fbbfaf4e8ff523e39a6034785a4d8eb (patch)
tree6ebc35005a3ced68f27cc5295129dc8637675b9d /conftest.py
parent2995140fe8fc3d0de9f9fa6fe0d574dc2d9a0ca3 (diff)
parent897f409cdf68d99c46e112531e7c256cb2933afd (diff)
downloadpython-setuptools-git-662816b65fbbfaf4e8ff523e39a6034785a4d8eb.tar.gz
Merge pull request #2388 from pypa/feature/plugins-enabled-by-default
Enable flake8 and cov plugins only when installed.
Diffstat (limited to 'conftest.py')
-rw-r--r--conftest.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/conftest.py b/conftest.py
index baffac1a..41ab30b9 100644
--- a/conftest.py
+++ b/conftest.py
@@ -19,23 +19,5 @@ 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, 6):
collect_ignore.append('pavement.py')