diff options
Diffstat (limited to 'tests/checkers/unittest_format.py')
-rw-r--r-- | tests/checkers/unittest_format.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/checkers/unittest_format.py b/tests/checkers/unittest_format.py index fd0699daa..dfaf037b9 100644 --- a/tests/checkers/unittest_format.py +++ b/tests/checkers/unittest_format.py @@ -1,6 +1,6 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/main/LICENSE -# Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt +# For details: https://github.com/pylint-dev/pylint/blob/main/LICENSE +# Copyright (c) https://github.com/pylint-dev/pylint/blob/main/CONTRIBUTORS.txt """Check format checker helper functions.""" @@ -148,9 +148,10 @@ class TestCheckSpace(CheckerTestCase): encoding_token = tokenize.TokenInfo( tokenize.ENCODING, "utf-8", (0, 0), (0, 0), "" ) - tokens = [encoding_token] + _tokenize_str( - "if (\n None):\n pass\n" - ) + tokens = [ + encoding_token, + *_tokenize_str("if (\n None):\n pass\n"), + ] self.checker.process_tokens(tokens) |