mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Make the trace module ignore modules whose names start with "<" and
end with ">", i.e. follow convention.
This commit is contained in:
parent
ec766a6179
commit
9fe92d1de5
2 changed files with 5 additions and 2 deletions
|
|
@ -244,8 +244,7 @@ def is_ignored_filename(self, filename):
|
|||
"""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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue