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 | 34c8cc69cada9fef4609d22c1b2fa6e28f365ea7 (patch) | |
tree | 267b670cbbc5b95050c8bc434fc07f62ecc52488 /tests/test_farm.py | |
parent | 48f49108e289eb4c40693a8ace5cb895e38454ae (diff) | |
download | python-coveragepy-34c8cc69cada9fef4609d22c1b2fa6e28f365ea7.tar.gz |
Pylint can be a bitch sometimes
Diffstat (limited to 'tests/test_farm.py')
-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 0155abd..8623811 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): |