summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_with.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-06-04 10:10:41 (GMT)
committerGeorg Brandl <georg@python.org>2009-06-04 10:10:41 (GMT)
commit46121e79cedce6a6daba9ebd39d7ff345f3f15b7 (patch)
treef619e7a03c7e25264afc70cc2c9e8e063a3438d4 /Lib/test/test_with.py
parenteb56aa169a7af96254118fc47aa37df1da023987 (diff)
downloadcpython-46121e79cedce6a6daba9ebd39d7ff345f3f15b7.zip
cpython-46121e79cedce6a6daba9ebd39d7ff345f3f15b7.tar.gz
cpython-46121e79cedce6a6daba9ebd39d7ff345f3f15b7.tar.bz2
Better name for "Ctor".
Diffstat (limited to 'Lib/test/test_with.py')
-rw-r--r--Lib/test/test_with.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_with.py b/Lib/test/test_with.py
index 68ae890..b91e0fd 100644
--- a/Lib/test/test_with.py
+++ b/Lib/test/test_with.py
@@ -675,7 +675,7 @@ class NestedWith(unittest.TestCase):
if self.gobble:
return True
- class CtorRaises(object):
+ class InitRaises(object):
def __init__(self): raise RuntimeError()
class EnterRaises(object):
@@ -695,7 +695,7 @@ class NestedWith(unittest.TestCase):
def testExceptionInExprList(self):
try:
- with self.Dummy() as a, self.CtorRaises():
+ with self.Dummy() as a, self.InitRaises():
pass
except:
pass