diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2013-10-19 22:08:37 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2013-10-19 22:08:37 -0400 |
commit | 5aa8f70d4ee8b3d40d5caf69c42c67d4fd4f0118 (patch) | |
tree | bad8ec8d95104c115461b0bf4cd4e3584a46cfd7 /tests/test_testing.py | |
parent | dfb5405959bbe14ebcf533cd442c41a314b8a4fd (diff) | |
download | python-coveragepy-5aa8f70d4ee8b3d40d5caf69c42c67d4fd4f0118.tar.gz |
Generator expressons are ok now.
Diffstat (limited to 'tests/test_testing.py')
-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 c6d51ba..64dca61 100644 --- a/tests/test_testing.py +++ b/tests/test_testing.py @@ -183,10 +183,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 = [l for l in out if "executable:" in l][0] + executable = next(l for l in out if "executable:" in l) executable = executable.split(":", 1)[1].strip() self.assertTrue(same_python_executable(executable, sys.executable)) - environ = [l for l in out if "COV_FOOBAR" in l][0] + environ = next(l for l in out if "COV_FOOBAR" in l) _, _, environ = environ.rpartition(":") self.assertEqual(environ.strip(), "COV_FOOBAR = XYZZY") |