From 76581e3f8dc6ca01480e3baa184d8b1b3978b828 Mon Sep 17 00:00:00 2001 From: Victor Kuznetsov <32412802+just-sparta@users.noreply.github.com> Date: Fri, 21 May 2021 11:12:05 +0300 Subject: [PATCH] Add float instance to time_tests parse_stats (#5726) --- tests/time_tests/scripts/run_timetest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/time_tests/scripts/run_timetest.py b/tests/time_tests/scripts/run_timetest.py index 8cd63417b9161c..234c07e4db5496 100644 --- a/tests/time_tests/scripts/run_timetest.py +++ b/tests/time_tests/scripts/run_timetest.py @@ -61,7 +61,7 @@ def run_cmd(args: list, log=None, verbose=True): def parse_stats(stats: dict, res: dict): """Parse raw statistics from nested list to flatten dict""" for element in stats: - if isinstance(element, int): + if isinstance(element, (int, float)): for k, v in res.items(): if v is None: res.update({k: element})