summaryrefslogtreecommitdiff
path: root/Lib/test/test_contextlib.py
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-02-10 04:40:48 +0000
committerMartin Panter <vadmium+py@gmail.com>2016-02-10 04:40:48 +0000
commit7e3a91a5fc056f72c93f015bb9f4f22aef9e72fb (patch)
tree2d71aaeaad3d6536f20338811d806976577ec7bf /Lib/test/test_contextlib.py
parentb0cb42dfdb422495fb0c3a4374f2fa010f56a5ac (diff)
downloadcpython-git-7e3a91a5fc056f72c93f015bb9f4f22aef9e72fb.tar.gz
Issue #26136: Upgrade the generator_stop warning to DeprecationWarning
Patch by Anish Shah.
Diffstat (limited to 'Lib/test/test_contextlib.py')
-rw-r--r--Lib/test/test_contextlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_contextlib.py b/Lib/test/test_contextlib.py
index 30a6377bed..04fc875e5f 100644
--- a/Lib/test/test_contextlib.py
+++ b/Lib/test/test_contextlib.py
@@ -89,7 +89,7 @@ class ContextManagerTestCase(unittest.TestCase):
def woohoo():
yield
try:
- with self.assertWarnsRegex(PendingDeprecationWarning,
+ with self.assertWarnsRegex(DeprecationWarning,
"StopIteration"):
with woohoo():
raise stop_exc