summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_cpickle.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2001-12-21 20:04:22 (GMT)
committerBarry Warsaw <barry@python.org>2001-12-21 20:04:22 (GMT)
commit52acb49298fd0aee8a2a2a352f0b2ab039649bde (patch)
tree8494a3378452f85b4b71a0e02bc6c63cc21f8bec /Lib/test/test_cpickle.py
parent87fa3aa12cbb24c89cfb13c16d04f46a2dd9a9e1 (diff)
downloadcpython-52acb49298fd0aee8a2a2a352f0b2ab039649bde.zip
cpython-52acb49298fd0aee8a2a2a352f0b2ab039649bde.tar.gz
cpython-52acb49298fd0aee8a2a2a352f0b2ab039649bde.tar.bz2
Merge of the release22 branch changes back into the trunk.
Diffstat (limited to 'Lib/test/test_cpickle.py')
-rw-r--r--Lib/test/test_cpickle.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_cpickle.py b/Lib/test/test_cpickle.py
index dda606f..874735b 100644
--- a/Lib/test/test_cpickle.py
+++ b/Lib/test/test_cpickle.py
@@ -80,6 +80,13 @@ class cPickleFastPicklerTests(AbstractPickleTests):
AbstractPickleTests.test_recursive_multi,
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()
suite = unittest.TestSuite()