]> granicus.if.org Git - python/commitdiff
Better name for "Ctor".
authorGeorg Brandl <georg@python.org>
Thu, 4 Jun 2009 10:10:41 +0000 (10:10 +0000)
committerGeorg Brandl <georg@python.org>
Thu, 4 Jun 2009 10:10:41 +0000 (10:10 +0000)
Lib/test/test_with.py

index 68ae890f3d2486781f468ee8256a7353a9c4d916..b91e0fd91d207cf41d4f535f94b50771204f931f 100644 (file)
@@ -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