diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-02-10 04:40:48 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-02-10 04:40:48 (GMT) |
commit | 7e3a91a5fc056f72c93f015bb9f4f22aef9e72fb (patch) | |
tree | 2d71aaeaad3d6536f20338811d806976577ec7bf /Lib/test/test_contextlib.py | |
parent | b0cb42dfdb422495fb0c3a4374f2fa010f56a5ac (diff) | |
download | cpython-7e3a91a5fc056f72c93f015bb9f4f22aef9e72fb.zip cpython-7e3a91a5fc056f72c93f015bb9f4f22aef9e72fb.tar.gz cpython-7e3a91a5fc056f72c93f015bb9f4f22aef9e72fb.tar.bz2 |
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.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_contextlib.py b/Lib/test/test_contextlib.py index 30a6377..04fc875 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 |