mirror of https://github.com/python/cpython
Shouldn't test short tuples with all items equal -- one potential bug
would be that the tuple is reversed on unpickling, and we should catch that. :-) Goodnight -- that's it for toniht!
This commit is contained in:
parent
44f0ea5f73
commit
025bc2fe6c
|
@ -283,10 +283,10 @@ class AbstractPickleTests(unittest.TestCase):
|
||||||
|
|
||||||
def test_short_tuples(self):
|
def test_short_tuples(self):
|
||||||
a = ()
|
a = ()
|
||||||
b = (12,)
|
b = (1,)
|
||||||
c = (6, 6)
|
c = (1, 2)
|
||||||
d = (4, 4, 4)
|
d = (1, 2, 3)
|
||||||
e = (3, 3, 3, 3)
|
e = (1, 2, 3, 4)
|
||||||
for proto in 0, 1, 2:
|
for proto in 0, 1, 2:
|
||||||
for x in a, b, c, d, e:
|
for x in a, b, c, d, e:
|
||||||
s = self.dumps(x, proto)
|
s = self.dumps(x, proto)
|
||||||
|
|
Loading…
Reference in New Issue