Skip to content

Commit

Permalink
Add more test cases with invalid python code
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas committed Aug 17, 2021
1 parent c91a14f commit cef34cc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/functional/p/possible_forgotten_f_prefix.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
y = "This is a {var} used for formatting later"
z = y.format(var="string")

g = "This is a {another_var} used for formatting later"
h = y.format(another_var="string")

i = "This is {invalid /// python /// inside}"

examples = [var, var_two]
x = f"This is an example with a list: {''.join(examples) + 'well...' }"
x = "This is an example with a list: {''.join(examples) + 'well...' }" # [possible-forgotten-f-prefix]

0 comments on commit cef34cc

Please sign in to comment.