summaryrefslogtreecommitdiffstats
path: root/Lib/trace.py
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2012-04-11 01:05:53 (GMT)
committerBrett Cannon <brett@python.org>2012-04-11 01:05:53 (GMT)
commit9fe92d1de52fcb63527b2cffa5dbfbc2ae719508 (patch)
treec6ca67b49a46525b4c5957fa404438bdff073f00 /Lib/trace.py
parentec766a61795a21015ba5b95c106f1c2b089b3ff0 (diff)
downloadcpython-9fe92d1de52fcb63527b2cffa5dbfbc2ae719508.zip
cpython-9fe92d1de52fcb63527b2cffa5dbfbc2ae719508.tar.gz
cpython-9fe92d1de52fcb63527b2cffa5dbfbc2ae719508.tar.bz2
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 850369b..885824a 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"""