From d3613ed0d1f3c8780e6082c98d431861e256447e Mon Sep 17 00:00:00 2001 From: Marius Gedminas Date: Thu, 2 Jan 2020 10:15:04 +0200 Subject: [PATCH] Pin to older coverage version until the bug is fixed See https://github.com/nedbat/coveragepy/issues/909 --- .travis.yml | 2 +- constraints.txt | 2 ++ tox.ini | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 constraints.txt diff --git a/.travis.yml b/.travis.yml index 0f0225a3..c7d63592 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ python: - pypy - pypy3 install: - - pip install coverage coveralls coverage-python-version + - pip install coverage coveralls coverage-python-version -cconstraints.txt - pip install freezegun mock flake8 - pip install --no-deps -e . script: diff --git a/constraints.txt b/constraints.txt new file mode 100644 index 00000000..0b258c14 --- /dev/null +++ b/constraints.txt @@ -0,0 +1,2 @@ +# workaround for https://github.com/nedbat/coveragepy/issues/909 +coverage < 5.0 diff --git a/tox.ini b/tox.ini index cb44d463..832bc175 100644 --- a/tox.ini +++ b/tox.ini @@ -20,6 +20,7 @@ deps = mock coverage coverage-python-version + -cconstraints.txt skip_install = true commands = pip install --no-deps -e . @@ -31,6 +32,7 @@ deps = freezegun coverage coverage-python-version + -cconstraints.txt skip_install = true commands = {[testenv:coverage]commands}