]> granicus.if.org Git - python/commitdiff
warnings: Fix the issue number
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 6 Dec 2016 10:02:12 +0000 (11:02 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 6 Dec 2016 10:02:12 +0000 (11:02 +0100)
The fix for catch_warnings() is the issue #28835 (not the issue #28089).

Lib/test/test_warnings/__init__.py
Misc/NEWS

index 60fa780633eb8892a849d91743929e9cf934d383..0cddf4a2f4b10a50a0a0e21636faaee2251a9223 100644 (file)
@@ -945,7 +945,7 @@ class CatchWarningTests(BaseTest):
             self.assertTrue(wmod.filters is orig_filters)
 
     def test_record_override_showwarning_before(self):
-        # Issue #28089: If warnings.showwarning() was overriden, make sure
+        # Issue #28835: 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 #28089: It is possible to override warnings.showwarning()
+        # Issue #28835: It is possible to override warnings.showwarning()
         # in the catch_warnings(record=True) context manager.
         text = "This is a warning"
         wmod = self.module
index bfe3cc9284826c3cd1a73e47b46d9550703ceb61..fed13a3d797ce3ec70f94e07d1e358d4487332ab 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -26,7 +26,7 @@ Core and Builtins
 Library
 -------
 
-- Issue #28089: Fix a regression introduced in warnings.catch_warnings():
+- Issue #28835: 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