aboutsummaryrefslogtreecommitdiffstats
path: root/library/python/testing
diff options
context:
space:
mode:
authorromanoved <romanoved@yandex-team.com>2025-07-01 14:07:25 +0300
committerromanoved <romanoved@yandex-team.com>2025-07-01 14:32:09 +0300
commit1cc28301836a5965e0f34ae0f79e963a72ed3fc2 (patch)
tree25f45b59712640ec42536fae06f038a94e48f231 /library/python/testing
parenta03b695e8953d569998142805f61f3ee2ed2a896 (diff)
downloadydb-1cc28301836a5965e0f34ae0f79e963a72ed3fc2.tar.gz
fix test env detection
commit_hash:9a3b0959e51504f973770436f503dec16a0dc214
Diffstat (limited to 'library/python/testing')
-rw-r--r--library/python/testing/import_test/import_test.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/python/testing/import_test/import_test.py b/library/python/testing/import_test/import_test.py
index 7795c3c321f..816a938fe40 100644
--- a/library/python/testing/import_test/import_test.py
+++ b/library/python/testing/import_test/import_test.py
@@ -13,6 +13,8 @@ from __res import importer
def setup_test_environment():
+ if "YA_TEST_RUNNER" not in os.environ:
+ return
try:
from yatest_lib.ya import Ya
import yatest.common as yc