Make the trace module ignore modules whose names start with "<" and
end with ">", i.e. follow convention.
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 @@
"""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"""