[Python-checkins] cpython (2.7): Issue #26486: Removed pickle test that doesn't work in 2.7 on 64-bit platform.

serhiy.storchaka python-checkins at python.org
Tue Mar 8 04:05:00 EST 2016


https://hg.python.org/cpython/rev/ff2368d5c1d3
changeset:   100453:ff2368d5c1d3
branch:      2.7
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Tue Mar 08 11:04:22 2016 +0200
summary:
  Issue #26486: Removed pickle test that doesn't work in 2.7 on 64-bit platform.

files:
  Lib/test/pickletester.py |  11 -----------
  1 files changed, 0 insertions(+), 11 deletions(-)


diff --git a/Lib/test/pickletester.py b/Lib/test/pickletester.py
--- a/Lib/test/pickletester.py
+++ b/Lib/test/pickletester.py
@@ -1500,17 +1500,6 @@
             self.assertEqual(len(loaded), len(data))
             self.assertEqual(loaded, data)
 
-    def test_int_pickling_efficiency(self):
-        # Test compacity of int representation (see issue #12744)
-        for proto in protocols:
-            pickles = [self.dumps(2**n, proto) for n in xrange(0, 71, 5)]
-            sizes = list(map(len, pickles))
-            # the size function is monotonic
-            self.assertEqual(sorted(sizes), sizes)
-            if proto >= 2:
-                for p in pickles:
-                    self.assertFalse(opcode_in_pickle(pickle.LONG, p))
-
     def _check_pickling_with_opcode(self, obj, opcode, proto):
         pickled = self.dumps(obj, proto)
         self.assertTrue(opcode_in_pickle(opcode, pickled))

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list