[Zope-Checkins] CVS: Zope3/lib/python/Persistence/tests - testModule.py:1.10
Jeremy Hylton
jeremy@zope.com
Wed, 10 Jul 2002 18:54:07 -0400
Update of /cvs-repository/Zope3/lib/python/Persistence/tests
In directory cvs.zope.org:/tmp/cvs-serv24031/tests
Modified Files:
testModule.py
Log Message:
Re-enable test lambda
=== Zope3/lib/python/Persistence/tests/testModule.py 1.9 => 1.10 ===
## import nested
## self.assertEqual(nested.g(5), 8)
-## def testLambda(self):
-## # test a lambda that contains another lambda as a default
-## src = "f = lambda x, y = lambda: 1: x + y()"
-## self.importer.module_from_source("test", src)
-## get_transaction().commit()
-## import test
-## self.assertEqaul(test.f(1), 2)
+ def testLambda(self):
+ # test a lambda that contains another lambda as a default
+ src = "f = lambda x, y = lambda: 1: x + y()"
+ self.importer.module_from_source("test", src)
+ get_transaction().commit()
+ import test
+ self.assertEqual(test.f(1), 2)
def test_suite():
return unittest.makeSuite(TestModule)