[Zodb-checkins] CVS: Zope3/src/zodb/code/tests - test_module.py:1.5
Jeremy Hylton
jeremy@zope.com
Wed, 15 Jan 2003 14:54:15 -0500
Update of /cvs-repository/Zope3/src/zodb/code/tests
In directory cvs.zope.org:/tmp/cvs-serv27905/tests
Modified Files:
test_module.py
Log Message:
Make it illegal to create a persistent function with free variables.
=== Zope3/src/zodb/code/tests/test_module.py 1.4 => 1.5 ===
--- Zope3/src/zodb/code/tests/test_module.py:1.4 Tue Dec 31 13:35:42 2002
+++ Zope3/src/zodb/code/tests/test_module.py Wed Jan 15 14:54:12 2003
@@ -228,11 +228,8 @@
self.useNewConnection()
def testNested(self):
- self.registry.newModule("nested", nested_src)
- get_transaction().commit()
- import nested
- self.assertEqual(nested.g(5), 8)
- self.useNewConnection()
+ self.assertRaises(TypeError,
+ self.registry.newModule, "nested", nested_src)
def testLambda(self):
# test a lambda that contains another lambda as a default