# HG changeset patch # User Matt Harbison # Date 2019-12-27 23:52:48 # Node ID 6dbb18e1ac8d8d41a43f0ae4086d54eb974c9a65 # Parent 801b8d314791d31244f50aaec7c14efa4b5b0950 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 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 @@ class BufferingDecoderTests(TestCase): True, False, None, - [None for i in range(128)], + [None] * 128, ] encoded = b''.join(cborutil.streamencode(source))