
* Add new flag for tests, --no-preview-line-length-1, to be used for test cases known to not work in preview mode with line-length=1. Also split out the problematic cases in three cases to separate files. Removed now redundant file which explicitly tested preview annotations with line-length=1 * mode.preview -> preview_mode, mark pep_572_remove_parens as failing with ll1
21 lines
708 B
Python
21 lines
708 B
Python
# flags: --no-preview-line-length-1
|
|
# l2 loses the comment with line-length=1 in preview mode
|
|
l1 = ["This list should be broken up", "into multiple lines", "because it is way too long"]
|
|
l2 = ["But this list shouldn't", "even though it also has", "way too many characters in it"] # fmt: skip
|
|
l3 = ["I have", "trailing comma", "so I should be braked",]
|
|
|
|
# output
|
|
|
|
# l2 loses the comment with line-length=1 in preview mode
|
|
l1 = [
|
|
"This list should be broken up",
|
|
"into multiple lines",
|
|
"because it is way too long",
|
|
]
|
|
l2 = ["But this list shouldn't", "even though it also has", "way too many characters in it"] # fmt: skip
|
|
l3 = [
|
|
"I have",
|
|
"trailing comma",
|
|
"so I should be braked",
|
|
]
|