Better name for "Ctor".

This commit is contained in:
Georg Brandl 2009-06-04 10:10:41 +00:00
parent eb56aa169a
commit 46121e79ce

View file

@ -675,7 +675,7 @@ class NestedWith(unittest.TestCase):
if self.gobble: if self.gobble:
return True return True
class CtorRaises(object): class InitRaises(object):
def __init__(self): raise RuntimeError() def __init__(self): raise RuntimeError()
class EnterRaises(object): class EnterRaises(object):
@ -695,7 +695,7 @@ class NestedWith(unittest.TestCase):
def testExceptionInExprList(self): def testExceptionInExprList(self):
try: try:
with self.Dummy() as a, self.CtorRaises(): with self.Dummy() as a, self.InitRaises():
pass pass
except: except:
pass pass