-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
28 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[testoptions] | ||
max_pyver=3.8 | ||
[main] | ||
py-version=3.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
bad-reversed-sequence:5:0:5:26::The first reversed() argument is not a sequence:UNDEFINED | ||
bad-reversed-sequence:12:0:12:39::The first reversed() argument is not a sequence:UNDEFINED |
4 changes: 2 additions & 2 deletions
4
tests/functional/s/singledispatch/singledispatch_method_py37.rc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[testoptions] | ||
max_pyver=3.8 | ||
[main] | ||
py-version=3.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,16 @@ | ||
"""Test for a = *b""" | ||
""" | ||
Test PEP 0448 -- Additional Unpacking Generalizations | ||
https://www.python.org/dev/peps/pep-0448/ | ||
""" | ||
# pylint: disable=superfluous-parens, unnecessary-comprehension | ||
|
||
UNPACK_TUPLE = (*range(4), 4) | ||
UNPACK_LIST = [*range(4), 4] | ||
UNPACK_SET = {*range(4), 4} | ||
UNPACK_DICT = {'a': 1, **{'b': '2'}} | ||
UNPACK_DICT2 = {**UNPACK_DICT, "x": 1, "y": 2} | ||
UNPACK_DICT3 = {**{'a': 1}, 'a': 2, **{'a': 3}} | ||
|
||
|
||
FIRST = *[1, 2] # [star-needs-assignment-target] | ||
*THIRD, FOURTH = [1, 2, 3,] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
star-needs-assignment-target:3:8:3:15::Can use starred expression only in assignment target:UNDEFINED | ||
star-needs-assignment-target:15:8:15:15::Can use starred expression only in assignment target:UNDEFINED |
15 changes: 0 additions & 15 deletions
15
tests/functional/s/star/star_needs_assignment_target_py37.py
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
tests/functional/s/star/star_needs_assignment_target_syntax.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
""" | ||
Test PEP 0448 -- Additional Unpacking Generalizations | ||
https://www.python.org/dev/peps/pep-0448/ | ||
""" | ||
# pylint: disable=superfluous-parens, unnecessary-comprehension | ||
|
||
UNPACK_IN_COMP = {elem for elem in (*range(10))} # [syntax-error] |
1 change: 1 addition & 0 deletions
1
tests/functional/s/star/star_needs_assignment_target_syntax.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
syntax-error:7:37:None:None::"Parsing failed: 'cannot use starred expression here (<unknown>, line 7)'":HIGH |