aboutsummaryrefslogtreecommitdiffstats
path: root/library/python/testing/import_test
diff options
context:
space:
mode:
authormstebelev <mstebelev@yandex-team.ru>2022-02-10 16:47:17 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:17 +0300
commit5a176099114d03d5669e95a55a3a514bd24dd8b1 (patch)
tree13d2cd27a59ccff4e44d7c7f530f923483f82267 /library/python/testing/import_test
parent3c1fe03778c21d7aa4a5c4a4433ca611dbf2f785 (diff)
downloadydb-5a176099114d03d5669e95a55a3a514bd24dd8b1.tar.gz
Restoring authorship annotation for <mstebelev@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/python/testing/import_test')
-rw-r--r--library/python/testing/import_test/import_test.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/library/python/testing/import_test/import_test.py b/library/python/testing/import_test/import_test.py
index 3e3b7234ef..b9a3013b98 100644
--- a/library/python/testing/import_test/import_test.py
+++ b/library/python/testing/import_test/import_test.py
@@ -5,18 +5,18 @@ import re
import sys
import time
import traceback
-
+
import __res
from __res import importer
def check_imports(no_check=(), extra=(), skip_func=None, py_main=None):
- """
- tests all bundled modules are importable
- just add
- "PEERDIR(library/python/import_test)" to your CMakeLists.txt and
- "from import_test import test_imports" to your python test source file.
- """
+ """
+ tests all bundled modules are importable
+ just add
+ "PEERDIR(library/python/import_test)" to your CMakeLists.txt and
+ "from import_test import test_imports" to your python test source file.
+ """
str_ = lambda s: s
if not isinstance(b'', str):
str_ = lambda s: s.decode('UTF-8')
@@ -33,7 +33,7 @@ def check_imports(no_check=(), extra=(), skip_func=None, py_main=None):
failed = []
import_times = {}
-
+
norm = lambda s: s[:-9] if s.endswith('.__init__') else s
modules = sys.extra_modules | set(extra)