aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorv-korovin <v-korovin@yandex-team.com>2023-12-06 14:22:00 +0300
committerv-korovin <v-korovin@yandex-team.com>2023-12-06 15:25:10 +0300
commit2b3951ecee62e0ad5302c9a87788e24966d77ee4 (patch)
tree99ea7d586740f1ebdcfb2e83768908bf4b863484
parentea7e18c4f09c1ac195196b51e782a8f07f087006 (diff)
downloadydb-2b3951ecee62e0ad5302c9a87788e24966d77ee4.tar.gz
Fix str/bytes for regexp
-rw-r--r--library/python/testing/yatest_common/yatest/common/process.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/library/python/testing/yatest_common/yatest/common/process.py b/library/python/testing/yatest_common/yatest/common/process.py
index 2b6ae26c53..98fd0f0fee 100644
--- a/library/python/testing/yatest_common/yatest/common/process.py
+++ b/library/python/testing/yatest_common/yatest/common/process.py
@@ -208,6 +208,7 @@ class _Execution(object):
"""
Deprecated, use stderr
"""
+ # TODO: Fix bytes/str, maybe need to change a lot of tests
if self._std_err is not None:
return self._std_err
if self._process.stderr and not self._user_stderr:
@@ -443,7 +444,7 @@ class _Execution(object):
if self._std_err and self._check_sanitizer and runtime._get_ya_config().sanitizer_extra_checks:
build_path = runtime.build_path()
if self.command[0].startswith(build_path):
- match = re.search(SANITIZER_ERROR_PATTERN, self._std_err)
+ match = re.search(SANITIZER_ERROR_PATTERN, six.ensure_binary(self._std_err))
if match:
yatest_logger.error(
"%s sanitizer found errors:\n\tstd_err:%s\n",