From bad9b16cc4b145a55af37acf87e1891e5e019f08 Mon Sep 17 00:00:00 2001 From: prettyboy Date: Mon, 24 Oct 2022 11:41:56 +0300 Subject: [library/python/testing] Fixed relaxed mode selection --- library/python/testing/yatest_common/yatest/common/runtime.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'library/python/testing') diff --git a/library/python/testing/yatest_common/yatest/common/runtime.py b/library/python/testing/yatest_common/yatest/common/runtime.py index e377f9ac5f8..75c932743f4 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 -- cgit v1.3