Skip to content

Commit

Permalink
[logging-too-many-args] Add a regression test for float formatting
Browse files Browse the repository at this point in the history
Refs #9118
  • Loading branch information
Pierre-Sassoulas committed Oct 5, 2023
1 parent 0335711 commit 16d4eba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/functional/l/logging/logging_too_many_args.py
Expand Up @@ -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 )

0 comments on commit 16d4eba

Please sign in to comment.