You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/data/preview/long_strings.py
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -26,15 +26,15 @@
26
26
("This is a really long string that can't be expected to fit in one line and is used as a dict's key"): ["value1", "value2"],
27
27
}
28
28
29
-
L1= ["The is a short string", "This is a really long string that can't possibly be expected to fit all together on one line. Also it is inside a list literal, so it's expected to be wrapped in parens when spliting to avoid implicit str concatenation.", short_call("arg", {"key": "value"}), "This is another really really (not really) long string that also can't be expected to fit on one line and is, like the other string, inside a list literal.", ("parens should be stripped for short string in list")]
29
+
L1= ["The is a short string", "This is a really long string that can't possibly be expected to fit all together on one line. Also it is inside a list literal, so it's expected to be wrapped in parens when splitting to avoid implicit str concatenation.", short_call("arg", {"key": "value"}), "This is another really really (not really) long string that also can't be expected to fit on one line and is, like the other string, inside a list literal.", ("parens should be stripped for short string in list")]
30
30
31
31
L2= ["This is a really long string that can't be expected to fit in one line and is the only child of a list literal."]
32
32
33
-
S1= {"The is a short string", "This is a really long string that can't possibly be expected to fit all together on one line. Also it is inside a set literal, so it's expected to be wrapped in parens when spliting to avoid implicit str concatenation.", short_call("arg", {"key": "value"}), "This is another really really (not really) long string that also can't be expected to fit on one line and is, like the other string, inside a set literal.", ("parens should be stripped for short string in set")}
33
+
S1= {"The is a short string", "This is a really long string that can't possibly be expected to fit all together on one line. Also it is inside a set literal, so it's expected to be wrapped in parens when splitting to avoid implicit str concatenation.", short_call("arg", {"key": "value"}), "This is another really really (not really) long string that also can't be expected to fit on one line and is, like the other string, inside a set literal.", ("parens should be stripped for short string in set")}
34
34
35
35
S2= {"This is a really long string that can't be expected to fit in one line and is the only child of a set literal."}
36
36
37
-
T1= ("The is a short string", "This is a really long string that can't possibly be expected to fit all together on one line. Also it is inside a tuple literal, so it's expected to be wrapped in parens when spliting to avoid implicit str concatenation.", short_call("arg", {"key": "value"}), "This is another really really (not really) long string that also can't be expected to fit on one line and is, like the other string, inside a tuple literal.", ("parens should be stripped for short string in list"))
37
+
T1= ("The is a short string", "This is a really long string that can't possibly be expected to fit all together on one line. Also it is inside a tuple literal, so it's expected to be wrapped in parens when splitting to avoid implicit str concatenation.", short_call("arg", {"key": "value"}), "This is another really really (not really) long string that also can't be expected to fit on one line and is, like the other string, inside a tuple literal.", ("parens should be stripped for short string in list"))
38
38
39
39
T2= ("This is a really long string that can't be expected to fit in one line and is the only child of a tuple literal.",)
40
40
@@ -410,7 +410,7 @@ def foo():
410
410
(
411
411
"This is a really long string that can't possibly be expected to fit all"
412
412
" together on one line. Also it is inside a list literal, so it's expected to"
413
-
" be wrapped in parens when spliting to avoid implicit str concatenation."
413
+
" be wrapped in parens when splitting to avoid implicit str concatenation."
414
414
),
415
415
short_call("arg", {"key": "value"}),
416
416
(
@@ -431,7 +431,7 @@ def foo():
431
431
(
432
432
"This is a really long string that can't possibly be expected to fit all"
433
433
" together on one line. Also it is inside a set literal, so it's expected to be"
434
-
" wrapped in parens when spliting to avoid implicit str concatenation."
434
+
" wrapped in parens when splitting to avoid implicit str concatenation."
435
435
),
436
436
short_call("arg", {"key": "value"}),
437
437
(
@@ -452,7 +452,7 @@ def foo():
452
452
(
453
453
"This is a really long string that can't possibly be expected to fit all"
454
454
" together on one line. Also it is inside a tuple literal, so it's expected to"
455
-
" be wrapped in parens when spliting to avoid implicit str concatenation."
455
+
" be wrapped in parens when splitting to avoid implicit str concatenation."
0 commit comments