From 3bb7dd2deab8e9905a2bd3794327e9e0b5fd9185 Mon Sep 17 00:00:00 2001 From: Samuel Searles-Bryant Date: Fri, 1 Dec 2023 12:16:27 +0000 Subject: [PATCH] Add failing test to demonstrate list element comments not respected --- src/fixit/tests/rule.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/fixit/tests/rule.py b/src/fixit/tests/rule.py index 0a0497c9..d5bfcc91 100644 --- a/src/fixit/tests/rule.py +++ b/src/fixit/tests/rule.py @@ -312,6 +312,22 @@ class C: None, None, ), + ( # list elements + """ + [ + # lint-fixme: ExerciseReport + ..., + None, + ] + + [ + ..., # lint-fixme: ExerciseReport + None, + ] + """, + None, + None, + ), ): idx += 1 content = dedent(code).encode("utf-8")