From b17f42ffb061d611563d083dad7dc63c36164393 Mon Sep 17 00:00:00 2001 From: Martin Thoma Date: Tue, 17 Mar 2020 01:40:34 +0100 Subject: [PATCH] MAINT: https://github.com/nedbat/coveragepy/issues/883 --- setup.cfg | 3 +++ setup.py | 3 +++ tox.ini | 1 + 3 files changed, 7 insertions(+) diff --git a/setup.cfg b/setup.cfg index 7939657..0516fd0 100644 --- a/setup.cfg +++ b/setup.cfg @@ -18,3 +18,6 @@ ignore = H301, H306, H404, H405, W503, E501, E203, D413 backup=False runner=python3 -m pytest tests_dir=tests/ + +[coverage:run] +parallel=true diff --git a/setup.py b/setup.py index 9fd857a..9f7f0e4 100644 --- a/setup.py +++ b/setup.py @@ -22,6 +22,9 @@ def read(file_name): requires_tests = [ "pytest", "pytest-black", + # coverage is a transitive requirement of pytest-cov; + # it is pinned due to https://github.com/nedbat/coveragepy/issues/883 + "coverage<5.0.0", "pytest-cov", "pytest-flake8", "pytest-mccabe", diff --git a/tox.ini b/tox.ini index f76d85c..ce089c2 100644 --- a/tox.ini +++ b/tox.ini @@ -6,6 +6,7 @@ deps = pydocstyle pytest pytest-black + coverage<5.0.0 pytest-cov pytest-flake8 pytest-mccabe