[Zope3-checkins] CVS: Zope3/lib/python/Persistence/tests - testModule.py:1.28

Jeremy Hylton jeremy@zope.com
Thu, 10 Oct 2002 18:29:38 -0400


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

Modified Files:
	testModule.py 
Log Message:
Make sure a persistent module that imports a regular module is picklable.
Remove unused imports.



=== Zope3/lib/python/Persistence/tests/testModule.py 1.27 => 1.28 ===
--- Zope3/lib/python/Persistence/tests/testModule.py:1.27	Mon Oct  7 19:30:35 2002
+++ Zope3/lib/python/Persistence/tests/testModule.py	Thu Oct 10 18:29:37 2002
@@ -9,14 +9,13 @@
 from Persistence.Module import \
      PersistentModuleManager, PersistentModuleRegistry, \
      PersistentModuleImporter, PersistentPackage
-
 from Persistence import tests
-from Transaction import get_transaction
 
 from Transaction import get_transaction
 
 # snippets of source code used by testModules
 foo_src = """\
+import string
 x = 1
 def f(y):
     return x + y
@@ -207,7 +206,6 @@
 ##        self.assertEqual(closure.inc(5), 6)
 
     def testClass(self):
-        import pickle
         mgr = PersistentModuleManager(self.registry)
         mgr.new("foo", src)
         get_transaction().commit()