aboutsummaryrefslogtreecommitdiffstats
path: root/library/python
diff options
context:
space:
mode:
authorsomov <somov@yandex-team.com>2023-08-16 10:26:28 +0300
committersomov <somov@yandex-team.com>2023-08-16 11:30:50 +0300
commit2f05ce9735a6f692f8f3c6449540b893feb56968 (patch)
tree25f93a1fd0b8d532fedb163618e33719e7b64f2a /library/python
parent49a1c02a28a2fb37e642489f57f73b4a8d7cac03 (diff)
downloadydb-2f05ce9735a6f692f8f3c6449540b893feb56968.tar.gz
Fix yatest.common.process stdout/stderr redirection on macOS
Diffstat (limited to 'library/python')
-rw-r--r--library/python/testing/yatest_common/yatest/common/process.py2
1 files changed, 1 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 5278261d99..b6258252ae 100644
--- a/library/python/testing/yatest_common/yatest/common/process.py
+++ b/library/python/testing/yatest_common/yatest/common/process.py
@@ -543,7 +543,7 @@ def execute(
# raise ValueError("Don't use pipe to obtain stream data - it may leads to the deadlock")
def get_out_stream(stream, default_name):
- mode = 'wt+' if text else 'wb+'
+ mode = 'w+t' if text else 'w+b'
if stream is None:
# No stream is supplied: open new temp file
return _get_command_output_file(command, default_name, mode), False