summaryrefslogtreecommitdiff
path: root/Lib/trace.py
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2012-04-10 21:05:53 -0400
committerBrett Cannon <brett@python.org>2012-04-10 21:05:53 -0400
commit9fe92d1de52fcb63527b2cffa5dbfbc2ae719508 (patch)
treec6ca67b49a46525b4c5957fa404438bdff073f00 /Lib/trace.py
parentec766a61795a21015ba5b95c106f1c2b089b3ff0 (diff)
downloadcpython-git-9fe92d1de52fcb63527b2cffa5dbfbc2ae719508.tar.gz
Make the trace module ignore modules whose names start with "<" and
end with ">", i.e. follow convention.
Diffstat (limited to 'Lib/trace.py')
-rw-r--r--Lib/trace.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/trace.py b/Lib/trace.py
index 850369b9ff..885824aff2 100644
--- a/Lib/trace.py
+++ b/Lib/trace.py
@@ -244,8 +244,7 @@ class CoverageResults:
"""Return True if the filename does not refer to a file
we want to have reported.
"""
- return (filename == "<string>" or
- filename.startswith("<doctest "))
+ return filename.startswith('<') and filename.endswith('>')
def update(self, other):
"""Merge in the data from another CoverageResults"""