diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2017-01-12 07:07:10 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2017-01-12 07:07:10 -0500 |
commit | 5889e7f726928e912e2685aab0384f7df8bc94bc (patch) | |
tree | 69be4722f3fcfcfdc4df2ba26f5a969aacaf6d9f | |
parent | bf7ac854364bd40a89f2d98432dbaf0ecbfffc89 (diff) | |
download | python-coveragepy-git-5889e7f726928e912e2685aab0384f7df8bc94bc.tar.gz |
Pylint can be a bitch sometimes
-rw-r--r-- | tests/test_farm.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/test_farm.py b/tests/test_farm.py index 0155abd8..86238115 100644 --- a/tests/test_farm.py +++ b/tests/test_farm.py @@ -14,7 +14,7 @@ import sys import pytest -from unittest_mixins import ModuleAwareMixin, SysPathAwareMixin, change_dir, saved_sys_path +from unittest_mixins import ModuleAwareMixin, SysPathAwareMixin, change_dir from tests.helpers import run_command from tests.backtest import execfile # pylint: disable=redefined-builtin @@ -295,8 +295,10 @@ def contains_any(filename, *strlist): for s in strlist: if s in text: return - else: # pragma: only failure - assert False, "Missing content in %s: %r [1 of %d]" % (filename, strlist[0], len(strlist),) + + assert False, ( # pragma: only failure + "Missing content in %s: %r [1 of %d]" % (filename, strlist[0], len(strlist),) + ) def doesnt_contain(filename, *strlist): |