diff options
author | Marc Mueller <30130371+cdce8p@users.noreply.github.com> | 2021-06-02 18:06:32 +0200 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-06-10 12:49:20 +0200 |
commit | fd8daeef884fe036ff9041339a3876ed38b99668 (patch) | |
tree | d1ba562e24fa058d2910098a9751507774a622ce /tests/functional/c | |
parent | 2090d96c3f7978dbc5517e5c974ad96e44744192 (diff) | |
download | pylint-git-fd8daeef884fe036ff9041339a3876ed38b99668.tar.gz |
Change to consider-using-tuple
Diffstat (limited to 'tests/functional/c')
-rw-r--r-- | tests/functional/c/consider/consider_using_tuple.py (renamed from tests/functional/c/consider/consider_using_tuple_iterator.py) | 8 | ||||
-rw-r--r-- | tests/functional/c/consider/consider_using_tuple.txt | 4 | ||||
-rw-r--r-- | tests/functional/c/consider/consider_using_tuple_iterator.txt | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/tests/functional/c/consider/consider_using_tuple_iterator.py b/tests/functional/c/consider/consider_using_tuple.py index 7961475c2..679ef77d2 100644 --- a/tests/functional/c/consider/consider_using_tuple_iterator.py +++ b/tests/functional/c/consider/consider_using_tuple.py @@ -6,17 +6,17 @@ for x in var: pass for x in (1, 2, 3): pass -for x in [1, 2, 3]: # [consider-using-tuple-iterator] +for x in [1, 2, 3]: # [consider-using-tuple] pass (x for x in var) (x for x in (1, 2, 3)) -(x for x in [1, 2, 3]) # [consider-using-tuple-iterator] -(x for x in {1, 2, 3}) # [consider-using-tuple-iterator] +(x for x in [1, 2, 3]) # [consider-using-tuple] +(x for x in {1, 2, 3}) # [consider-using-tuple] [x for x in var] [x for x in (1, 2, 3)] -[x for x in [1, 2, 3]] # [consider-using-tuple-iterator] +[x for x in [1, 2, 3]] # [consider-using-tuple] # list/set can't be replaced if tuple unpacking is used diff --git a/tests/functional/c/consider/consider_using_tuple.txt b/tests/functional/c/consider/consider_using_tuple.txt new file mode 100644 index 000000000..df796b683 --- /dev/null +++ b/tests/functional/c/consider/consider_using_tuple.txt @@ -0,0 +1,4 @@ +consider-using-tuple:9:9::Consider using an in-place tuple instead of list +consider-using-tuple:14:12::Consider using an in-place tuple instead of list +consider-using-tuple:15:12::Consider using an in-place tuple instead of set +consider-using-tuple:19:12::Consider using an in-place tuple instead of list diff --git a/tests/functional/c/consider/consider_using_tuple_iterator.txt b/tests/functional/c/consider/consider_using_tuple_iterator.txt deleted file mode 100644 index ead0ffdf2..000000000 --- a/tests/functional/c/consider/consider_using_tuple_iterator.txt +++ /dev/null @@ -1,4 +0,0 @@ -consider-using-tuple-iterator:9:9::Consider iterating over in-place tuple instead -consider-using-tuple-iterator:14:12::Consider iterating over in-place tuple instead -consider-using-tuple-iterator:15:12::Consider iterating over in-place tuple instead -consider-using-tuple-iterator:19:12::Consider iterating over in-place tuple instead |