aboutsummaryrefslogtreecommitdiff
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
parent1) Remove claim of an input invariant that is only true for static mpd_t. (diff)
downloadcpython-9fe92d1de52fcb63527b2cffa5dbfbc2ae719508.tar.gz
cpython-9fe92d1de52fcb63527b2cffa5dbfbc2ae719508.tar.bz2
cpython-9fe92d1de52fcb63527b2cffa5dbfbc2ae719508.zip
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 850369b9ff4..885824aff27 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"""