diff --git a/Lib/test/test_with.py b/Lib/test/test_with.py index 68ae890f3d2..b91e0fd91d2 100644 --- a/Lib/test/test_with.py +++ b/Lib/test/test_with.py @@ -675,7 +675,7 @@ def __exit__(self, *exc_info): if self.gobble: return True - class CtorRaises(object): + class InitRaises(object): def __init__(self): raise RuntimeError() class EnterRaises(object): @@ -695,7 +695,7 @@ def testNoExceptions(self): def testExceptionInExprList(self): try: - with self.Dummy() as a, self.CtorRaises(): + with self.Dummy() as a, self.InitRaises(): pass except: pass