mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
bpo-38328: Speed up the creation time of constant list and set display. (GH-17114)
This commit is contained in:
parent
e4db1f05e9
commit
6dd9b64770
3 changed files with 25 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue