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
8ae9e6a6
Commit
8ae9e6a6
authored
Dec 06, 2016
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
warnings: Fix the issue number
The fix for catch_warnings() is the issue #28835 (not the issue #28089).
parent
8ef46be2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Lib/test/test_warnings/__init__.py
Lib/test/test_warnings/__init__.py
+2
-2
Misc/NEWS
Misc/NEWS
+1
-1
No files found.
Lib/test/test_warnings/__init__.py
View file @
8ae9e6a6
...
...
@@ -945,7 +945,7 @@ class CatchWarningTests(BaseTest):
self
.
assertTrue
(
wmod
.
filters
is
orig_filters
)
def
test_record_override_showwarning_before
(
self
):
# Issue #28
089
: If warnings.showwarning() was overriden, make sure
# Issue #28
835
: If warnings.showwarning() was overriden, make sure
# that catch_warnings(record=True) overrides it again.
text
=
"This is a warning"
wmod
=
self
.
module
...
...
@@ -970,7 +970,7 @@ class CatchWarningTests(BaseTest):
self
.
assertEqual
(
my_log
,
[])
def
test_record_override_showwarning_inside
(
self
):
# Issue #28
089
: It is possible to override warnings.showwarning()
# Issue #28
835
: It is possible to override warnings.showwarning()
# in the catch_warnings(record=True) context manager.
text
=
"This is a warning"
wmod
=
self
.
module
...
...
Misc/NEWS
View file @
8ae9e6a6
...
...
@@ -26,7 +26,7 @@ Core and Builtins
Library
-------
-
Issue
#
28
089
:
Fix
a
regression
introduced
in
warnings
.
catch_warnings
():
-
Issue
#
28
835
:
Fix
a
regression
introduced
in
warnings
.
catch_warnings
():
call
warnings
.
showwarning
()
if
it
was
overriden
inside
the
context
manager
.
-
Issue
#
27172
:
To
assist
with
upgrades
from
2.7
,
the
previously
documented
...
...
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