[Zope-Checkins] CVS: Zope3/lib/python/Persistence/tests - testModule.py:1.11

Jeremy Hylton jeremy@zope.com
Wed, 10 Jul 2002 19:11:22 -0400


Update of /cvs-repository/Zope3/lib/python/Persistence/tests
In directory cvs.zope.org:/tmp/cvs-serv28519/tests

Modified Files:
	testModule.py 
Log Message:
Re-enable testNested.





=== Zope3/lib/python/Persistence/tests/testModule.py 1.10 => 1.11 ===
 """
 nested_src = """def f(x):
     def g(y):
+        def z(z):
+            return x + y + z
         return x + y
     return g
 
@@ -132,11 +134,11 @@
         test._p_deactivate()
         self.assertEqual(test.f(), len(test.x))
 
-##    def testNested(self):
-##        self.importer.module_from_source("nested", nested_src)
-##        get_transaction().commit()
-##        import nested
-##        self.assertEqual(nested.g(5), 8)
+    def testNested(self):
+        self.importer.module_from_source("nested", nested_src)
+        get_transaction().commit()
+        import nested
+        self.assertEqual(nested.g(5), 8)
 
     def testLambda(self):
         # test a lambda that contains another lambda as a default