Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
9fe92d1d
Commit
9fe92d1d
authored
Apr 10, 2012
by
Brett Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the trace module ignore modules whose names start with "<" and
end with ">", i.e. follow convention.
parent
ec766a61
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
Lib/trace.py
Lib/trace.py
+1
-2
Misc/NEWS
Misc/NEWS
+4
-0
No files found.
Lib/trace.py
View file @
9fe92d1d
...
...
@@ -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"""
...
...
Misc/NEWS
View file @
9fe92d1d
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment