diff options
Diffstat (limited to 'tests/functional/c/consider/consider_using_f_string.py')
-rw-r--r-- | tests/functional/c/consider/consider_using_f_string.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/functional/c/consider/consider_using_f_string.py b/tests/functional/c/consider/consider_using_f_string.py index 1d5400d5a..f6801989e 100644 --- a/tests/functional/c/consider/consider_using_f_string.py +++ b/tests/functional/c/consider/consider_using_f_string.py @@ -116,3 +116,11 @@ def assignment_bad(): h = "String %s" % (PARAM_1) # [consider-using-f-string] i = "String %s %s" % (PARAM_1, PARAM_2) # [consider-using-f-string] j = "String %s" % (PARAM_LIST_SINGLE) # [consider-using-f-string] + + +def regression_tests(): + # Referencing .format in a kwarg should not be warned + def wrap_print(value): + print(value) + + wrap_print(value="{}".format) |