[Zodb-checkins] CVS: ZODB4/src/zodb/code/tests - test_module.py:1.13

Jeremy Hylton jeremy at zope.com
Thu Jun 26 20:17:51 EDT 2003


Update of /cvs-repository/ZODB4/src/zodb/code/tests
In directory cvs.zope.org:/tmp/cvs-serv4266/tests

Modified Files:
	test_module.py 
Log Message:
Make modules picklable.


=== ZODB4/src/zodb/code/tests/test_module.py 1.12 => 1.13 ===
--- ZODB4/src/zodb/code/tests/test_module.py:1.12	Wed May  7 14:19:08 2003
+++ ZODB4/src/zodb/code/tests/test_module.py	Thu Jun 26 19:17:51 2003
@@ -12,6 +12,7 @@
 #
 ##############################################################################
 import os
+import pickle
 import unittest
 
 from persistence.dict import PersistentDict
@@ -409,6 +410,12 @@
         self.open()
         del foo
         import foo
+
+    def testModulePicklability(self):
+        from zodb.code.tests import test_module
+        s = pickle.dumps(test_module)
+        m = pickle.loads(s)
+        self.assertEqual(m, test_module)
 
 def test_suite():
     s = unittest.TestSuite()




More information about the Zodb-checkins mailing list