diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-07-20 10:26:50 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-07-20 10:26:50 -0400 |
commit | c4f03e3bd98768df362687c6962fd1d7f01a737a (patch) | |
tree | 41a7411dba33375d348ba59b94c15621ae935587 /tests | |
parent | 01e4a481e5e501fc101dec58853d36d0c2e5e354 (diff) | |
download | python-coveragepy-git-c4f03e3bd98768df362687c6962fd1d7f01a737a.tar.gz |
Pragma away some partial branches in next(gen...)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_testing.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_testing.py b/tests/test_testing.py index 29599442..b01cb74c 100644 --- a/tests/test_testing.py +++ b/tests/test_testing.py @@ -124,10 +124,10 @@ class CoverageTestTest(CoverageTest): # Try it with a "coverage debug sys" command. out = self.run_command("coverage debug sys").splitlines() # "environment: COV_FOOBAR = XYZZY" or "COV_FOOBAR = XYZZY" - executable = next(l for l in out if "executable:" in l) + executable = next(l for l in out if "executable:" in l) # pragma: part covered executable = executable.split(":", 1)[1].strip() self.assertTrue(same_python_executable(executable, sys.executable)) - environ = next(l for l in out if "COV_FOOBAR" in l) + environ = next(l for l in out if "COV_FOOBAR" in l) # pragma: part covered _, _, environ = environ.rpartition(":") self.assertEqual(environ.strip(), "COV_FOOBAR = XYZZY") |