From 2ba21f0a2fa8a3504e69e78182c4ca72736f7dd7 Mon Sep 17 00:00:00 2001 From: pavel-zotov Date: Sat, 13 May 2023 20:33:28 +0300 Subject: [PATCH] Added/Updated tests\bugs\gh_7038_test.py: added 'perf_issue_tag' string to the output related to performance problem. This text will serve as 'tag' for unambiguous detection of performance problem and set appropriate mark to the test outcome. --- tests/bugs/gh_7038_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/bugs/gh_7038_test.py b/tests/bugs/gh_7038_test.py index 42f44427..8c6461c2 100644 --- a/tests/bugs/gh_7038_test.py +++ b/tests/bugs/gh_7038_test.py @@ -127,7 +127,7 @@ def test_1(act: Action, capsys): for i in range(0, N_MEASURES): ratio_lst.append( sp_time['utf8',i] / sp_time['ptbr',i] ) median_ratio = median(ratio_lst) - print( 'Duration ratio: ' + ('acceptable' if median_ratio < UTF8_TO_PTBR_MAX_RATIO else 'POOR: %s, more than threshold: %s' % ( '{:9g}'.format(median_ratio), '{:9g}'.format(UTF8_TO_PTBR_MAX_RATIO) ) ) ) + print( 'Duration ratio: ' + ('acceptable' if median_ratio < UTF8_TO_PTBR_MAX_RATIO else '/* perf_issue_tag */ POOR: %s, more than threshold: %s' % ( '{:9g}'.format(median_ratio), '{:9g}'.format(UTF8_TO_PTBR_MAX_RATIO) ) ) ) if median_ratio >= UTF8_TO_PTBR_MAX_RATIO: print('Ratio statistics for %d measurements' % N_MEASURES)