[Python-checkins] CVS: python/dist/src/Lib/test pickletester.py,1.12,1.12.4.1
Michael Hudson
mwh@users.sourceforge.net
Tue, 05 Mar 2002 06:01:31 -0800
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv24336
Modified Files:
Tag: release22-maint
pickletester.py
Log Message:
backport my checkin of
revision 1.13 of pickletester.py
A fix & test for
[ 496873 ] structseqs unpicklable
by adding a __reduce__ method to structseqs.
Will also commit this to the 2.2.1 branch momentarily.
Index: pickletester.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/pickletester.py,v
retrieving revision 1.12
retrieving revision 1.12.4.1
diff -C2 -d -r1.12 -r1.12.4.1
*** pickletester.py 19 Dec 2001 16:58:54 -0000 1.12
--- pickletester.py 5 Mar 2002 14:01:28 -0000 1.12.4.1
***************
*** 249,252 ****
--- 249,259 ----
self.assertEqual(a.__class__, b.__class__)
+ def test_structseq(self):
+ import time
+ t = time.localtime()
+ s = self.dumps(t)
+ u = self.loads(s)
+ self.assertEqual(t, u)
+
class AbstractPickleModuleTests(unittest.TestCase):