Fix new pylint-3.0.0 detected issues 69/108169/1
authorGilles Thouenon <gilles.thouenon@orange.com>
Tue, 3 Oct 2023 07:35:06 +0000 (09:35 +0200)
committerGilles Thouenon <gilles.thouenon@orange.com>
Tue, 3 Oct 2023 08:01:44 +0000 (10:01 +0200)
commit65f292021789e99cbf735b83537ca80554a75ba8
tree731e79a8858bbdd6bd0cf8feb3c12e02b2f730aa
parent0a83b6936702d50a080b76615b89992d6adc2c4b
Fix new pylint-3.0.0 detected issues

Refactor wait_until_log_contains method of test_utils taking advantage
of the with block in order to remove the finally block. That simplifies
the return flow.

JIRA: TRNSPRTPCE-764
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: I8b3fa004eddc9e8688640205490c385645f4d6e3
tests/transportpce_tests/common/test_utils.py