diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2013-10-19 21:42:29 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2013-10-19 21:42:29 -0400 |
commit | 6224a804d07119eb228a11d306bf392e3d0b266a (patch) | |
tree | 9238a7cb8d80482356f5504f2cb5964f932b7c88 /tests/test_collector.py | |
parent | c7b1c99b06a453af879f4768e347ac89000cce42 (diff) | |
download | python-coveragepy-git-6224a804d07119eb228a11d306bf392e3d0b266a.tar.gz |
Now I can use tuples with startswith and endswith.
--HG--
branch : 4.0
Diffstat (limited to 'tests/test_collector.py')
-rw-r--r-- | tests/test_collector.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_collector.py b/tests/test_collector.py index af3814f3..7bd4bebb 100644 --- a/tests/test_collector.py +++ b/tests/test_collector.py @@ -48,7 +48,7 @@ class CollectorTest(CoverageTest): # duplicates. trace_lines = [ l for l in debug_out.getvalue().splitlines() - if l.startswith("Tracing ") or l.startswith("Not tracing ") + if l.startswith(("Tracing ", "Not tracing ")) ] filenames = [re.search(r"'[^']+'", l).group() for l in trace_lines] self.assertEqual(len(filenames), len(set(filenames))) |