summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sys.py
diff options
context:
space:
mode:
authorBrandt Bucher <brandtbucher@gmail.com>2019-11-26 06:16:53 (GMT)
committerInada Naoki <songofacandy@gmail.com>2019-11-26 06:16:53 (GMT)
commit6dd9b64770af8905bef293c81d541eaaf8d8df52 (patch)
tree735a69a00b2e5b4574916a25c2b36a5611c572a9 /Lib/test/test_sys.py
parente4db1f05e9a5828f6b287f99067362fa0e5732e8 (diff)
downloadcpython-6dd9b64770af8905bef293c81d541eaaf8d8df52.zip
cpython-6dd9b64770af8905bef293c81d541eaaf8d8df52.tar.gz
cpython-6dd9b64770af8905bef293c81d541eaaf8d8df52.tar.bz2
bpo-38328: Speed up the creation time of constant list and set display. (GH-17114)
Diffstat (limited to 'Lib/test/test_sys.py')
-rw-r--r--Lib/test/test_sys.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
index 9961dee..947c935 100644
--- a/Lib/test/test_sys.py
+++ b/Lib/test/test_sys.py
@@ -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)