Kaydet (Commit) 46121e79 authored tarafından Georg Brandl's avatar Georg Brandl

Better name for "Ctor".

üst eb56aa16
...@@ -675,7 +675,7 @@ class NestedWith(unittest.TestCase): ...@@ -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): ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment