[Python-checkins] CVS: python/dist/src/Lib/test test_cpickle.py,1.10,1.10.2.1
Guido van Rossum
gvanrossum@users.sourceforge.net
Fri, 21 Dec 2001 07:28:47 -0800
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv2108
Modified Files:
Tag: release22-branch
test_cpickle.py
Log Message:
Add test that a long chain of references can be correctly pickled in
fast mode.
Index: test_cpickle.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_cpickle.py,v
retrieving revision 1.10
retrieving revision 1.10.2.1
diff -C2 -d -r1.10 -r1.10.2.1
*** test_cpickle.py 2001/12/19 16:42:15 1.10
--- test_cpickle.py 2001/12/21 15:28:45 1.10.2.1
***************
*** 81,84 ****
--- 81,91 ----
self)
+ def test_nonrecursive_deep(self):
+ a = []
+ for i in range(100):
+ a = [a]
+ b = self.loads(self.dumps(a))
+ self.assertEqual(a, b)
+
def test_main():
loader = unittest.TestLoader()