Commit 9fe92d1d authored by Brett Cannon's avatar Brett Cannon

Make the trace module ignore modules whose names start with "<" and

end with ">", i.e. follow convention.
parent ec766a61
......@@ -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"""
......
......@@ -19,6 +19,10 @@ Core and Builtins
Library
-------
- trace.CoverageResults.is_ignored_filename() now ignores any name that starts
with "<" and ends with ">" instead of special-casing "<string>" and
"<doctest ".
- Issue #12537: The mailbox module no longer depends on knowledge of internal
implementation details of the email package Message object.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment