diff options
| author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2023-03-14 19:44:38 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-14 19:44:38 +0100 |
| commit | 1eef2273aee4c5a2e287f7470d6da3a3ae7d0760 (patch) | |
| tree | cb29286317426645a9e42eb04f66d4cdf31afeb3 /tests/checkers | |
| parent | 0d463f6e2127b81e2d13c482871f82b4c991f7bd (diff) | |
| download | pylint-git-1eef2273aee4c5a2e287f7470d6da3a3ae7d0760.tar.gz | |
[ruff] Add RUF specific rules and autofix (#8449)
Diffstat (limited to 'tests/checkers')
| -rw-r--r-- | tests/checkers/unittest_format.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/checkers/unittest_format.py b/tests/checkers/unittest_format.py index fd0699daa..bce643b52 100644 --- a/tests/checkers/unittest_format.py +++ b/tests/checkers/unittest_format.py @@ -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) |
