-
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.
Remove invalid Python syntax from formatter tests
With the parser becoming a bit more strict, it discovered some invalid syntax in one of the formatter tests. In particular, `yield a = 1`: >>> (yield a, b) = (1, 2) File "<input>", line 1 (yield a, b) = (1, 2) ^^^^^^^^^^ SyntaxError: cannot assign to yield expression here. Maybe you meant '==' instead of '='? We just remove that bit from the `yield` test.
- Loading branch information
1 parent
8e583fc
commit 9142dae
Showing
2 changed files
with
0 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,8 +22,6 @@ def foo(): | |
pass | ||
|
||
|
||
(yield a, b) = (1, 2) | ||
|
||
# some comment | ||
for e in l : yield e # some comment | ||
|
||
|
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