bpo-38328: Speed up the creation time of constant list and set display. (GH-17114)

This commit is contained in:
Brandt Bucher 2019-11-25 22:16:53 -08:00 committed by Inada Naoki
parent e4db1f05e9
commit 6dd9b64770
3 changed files with 25 additions and 1 deletions

View file

@ -1222,7 +1222,7 @@ class SizeofTest(unittest.TestCase):
# list
samples = [[], [1,2,3], ['1', '2', '3']]
for sample in samples:
check(sample, vsize('Pn') + len(sample)*self.P)
check(list(sample), vsize('Pn') + len(sample)*self.P)
# sortwrapper (list)
# XXX
# cmpwrapper (list)