aboutsummaryrefslogtreecommitdiffstats
path: root/library/python/testing/yatest_common/yatest/common/runtime.py
diff options
context:
space:
mode:
authorprettyboy <prettyboy@yandex-team.com>2022-10-24 11:41:56 +0300
committerprettyboy <prettyboy@yandex-team.com>2022-10-24 11:41:56 +0300
commitbad9b16cc4b145a55af37acf87e1891e5e019f08 (patch)
tree651c8185c1aabe75e74d0b33e6adbb55a24c5321 /library/python/testing/yatest_common/yatest/common/runtime.py
parented05064c1fcbd3ef77a10ebf64fcd048ebe8190b (diff)
downloadydb-bad9b16cc4b145a55af37acf87e1891e5e019f08.tar.gz
[library/python/testing] Fixed relaxed mode selection
Diffstat (limited to 'library/python/testing/yatest_common/yatest/common/runtime.py')
-rw-r--r--library/python/testing/yatest_common/yatest/common/runtime.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/python/testing/yatest_common/yatest/common/runtime.py b/library/python/testing/yatest_common/yatest/common/runtime.py
index e377f9ac5f..75c932743f 100644
--- a/library/python/testing/yatest_common/yatest/common/runtime.py
+++ b/library/python/testing/yatest_common/yatest/common/runtime.py
@@ -66,7 +66,7 @@ def _is_relaxed_runtime_allowed():
global _relaxed_runtime_allowed
if _relaxed_runtime_allowed:
return True
- return _is_binary()
+ return not _is_binary()
def default_arg0(func):
@@ -86,7 +86,7 @@ def default_arg(func, narg):
try:
return func(*args, **kw)
except NoRuntimeFormed:
- if not _is_relaxed_runtime_allowed():
+ if _is_relaxed_runtime_allowed():
if len(args) > narg:
return args[narg]
return None
@@ -102,7 +102,7 @@ def default_value(value):
try:
return func(*args, **kw)
except NoRuntimeFormed:
- if not _is_relaxed_runtime_allowed():
+ if _is_relaxed_runtime_allowed():
return value
raise
@@ -324,7 +324,7 @@ def gdb_path():
"""
Get path to the gdb
"""
- if not _is_relaxed_runtime_allowed():
+ if _is_relaxed_runtime_allowed():
return "gdb"
return _get_ya_plugin_instance().gdb_path