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

Jeremy Hylton jeremy@zope.com
Thu, 26 Jun 2003 19:17:51 -0400


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()