diff options
author | mstebelev <mstebelev@yandex-team.ru> | 2022-02-10 16:47:17 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:17 +0300 |
commit | 93e9e4639b6ee2afbdf45cf3927cea6d340e19b0 (patch) | |
tree | 9814fbd1c3effac9b8377c5d604b367b14e2db55 /library/python/testing/import_test | |
parent | 5a176099114d03d5669e95a55a3a514bd24dd8b1 (diff) | |
download | ydb-93e9e4639b6ee2afbdf45cf3927cea6d340e19b0.tar.gz |
Restoring authorship annotation for <mstebelev@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/python/testing/import_test')
-rw-r--r-- | library/python/testing/import_test/import_test.py | 16 |
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 b9a3013b98..3e3b7234ef 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) |