Issue #26136: Upgrade the generator_stop warning to DeprecationWarning

Patch by Anish Shah.
This commit is contained in:
Martin Panter 2016-02-10 04:40:48 +00:00
parent b0cb42dfdb
commit 7e3a91a5fc
6 changed files with 19 additions and 7 deletions

View file

@ -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