diff options
Diffstat (limited to 'tests/functional/l/logging/logging_fstring_interpolation_py37.py')
-rw-r--r-- | tests/functional/l/logging/logging_fstring_interpolation_py37.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/functional/l/logging/logging_fstring_interpolation_py37.py b/tests/functional/l/logging/logging_fstring_interpolation_py37.py index 963b2ce8c..d08424eb0 100644 --- a/tests/functional/l/logging/logging_fstring_interpolation_py37.py +++ b/tests/functional/l/logging/logging_fstring_interpolation_py37.py @@ -3,3 +3,9 @@ import logging VAR = "string" logging.error(f"{VAR}") # [logging-fstring-interpolation] + +WORLD = "world" +logging.error(f'Hello {WORLD}') # [logging-fstring-interpolation] + +logging.error(f'Hello %s', 'World!') # [f-string-without-interpolation] +logging.error(f'Hello %d', 1) # [f-string-without-interpolation] |