Patchwork D7763: tests: avoid using a list comprehension to fill a list with fixed values

login
register
mail settings
Submitter phabricator
Date Dec. 30, 2019, 1:33 p.m.
Message ID <675d1bad733f6d58c47c20d80d58d774@localhost.localdomain>
Download mbox | patch
Permalink /patch/44134/
State Not Applicable
Headers show

Comments

phabricator - Dec. 30, 2019, 1:33 p.m.
Closed by commit rHG6dbb18e1ac8d: tests: avoid using a list comprehension to fill a list with fixed values (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7763?vs=18994&id=19024

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7763/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7763

AFFECTED FILES
  tests/test-cbor.py

CHANGE DETAILS




To: mharbison72, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

diff --git a/tests/test-cbor.py b/tests/test-cbor.py
--- a/tests/test-cbor.py
+++ b/tests/test-cbor.py
@@ -1230,7 +1230,7 @@ 
             True,
             False,
             None,
-            [None for i in range(128)],
+            [None] * 128,
         ]
 
         encoded = b''.join(cborutil.streamencode(source))