summaryrefslogtreecommitdiff
path: root/Lib/trace.py
diff options
context:
space:
mode:
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"""