tests: avoid using a list comprehension to fill a list with fixed values
authorMatt Harbison <matt_harbison@yahoo.com>
Fri, 27 Dec 2019 18:52:48 -0500
changeset 43996 6dbb18e1ac8d
parent 43995 801b8d314791
child 43997 6e8678e7223a
tests: avoid using a list comprehension to fill a list with fixed values Flagged by PyCharm as an unused assignment for the variable in the list. Differential Revision: https://phab.mercurial-scm.org/D7763
tests/test-cbor.py
--- a/tests/test-cbor.py	Fri Dec 27 18:21:41 2019 -0500
+++ b/tests/test-cbor.py	Fri Dec 27 18:52:48 2019 -0500
@@ -1230,7 +1230,7 @@
             True,
             False,
             None,
-            [None for i in range(128)],
+            [None] * 128,
         ]
 
         encoded = b''.join(cborutil.streamencode(source))