From 16d4eba81d4da046e8c712f139a6b53f99a0b517 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Thu, 5 Oct 2023 22:19:59 +0200 Subject: [PATCH] [logging-too-many-args] Add a regression test for float formatting Refs #9118 --- tests/functional/l/logging/logging_too_many_args.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/functional/l/logging/logging_too_many_args.py b/tests/functional/l/logging/logging_too_many_args.py index 3aff250f711..9db0698d154 100644 --- a/tests/functional/l/logging/logging_too_many_args.py +++ b/tests/functional/l/logging/logging_too_many_args.py @@ -6,3 +6,6 @@ logging.error("{0}", 1, 2) # [logging-too-many-args] logging.error("{}, {named}", 1, 2, {"named": 1}) # [logging-too-many-args] logging.error("{0}, {named}", 1, 2, {"named": 1}) # [logging-too-many-args] + +# Regression test for https://github.com/pylint-dev/pylint/issues/9118 +logging.warning( "The frequency is: %f MHz", 2.3 )