changeset 43996:6dbb18e1ac8d

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
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 27 Dec 2019 18:52:48 -0500
parents 801b8d314791
children 6e8678e7223a
files tests/test-cbor.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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))