mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Better name for "Ctor".
This commit is contained in:
parent
eb56aa169a
commit
46121e79ce
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue