diff options
author | shadchin <shadchin@yandex-team.com> | 2022-11-17 20:14:17 +0300 |
---|---|---|
committer | shadchin <shadchin@yandex-team.com> | 2022-11-17 20:14:17 +0300 |
commit | 2d3c5d0080ff2afde3f91644718f1d094b9d6aa2 (patch) | |
tree | ac9a79e5d55200039f7862f34c7cca70a8758e35 /library/python/testing/import_test | |
parent | 487326d832ec22895f2c9209df5407c17f2c816d (diff) | |
download | ydb-2d3c5d0080ff2afde3f91644718f1d094b9d6aa2.tar.gz |
Reduce duplicate in NO_CHECK_IMPORTS
Diffstat (limited to 'library/python/testing/import_test')
-rw-r--r-- | library/python/testing/import_test/import_test.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/library/python/testing/import_test/import_test.py b/library/python/testing/import_test/import_test.py index 114723a4c6..9d187a3d64 100644 --- a/library/python/testing/import_test/import_test.py +++ b/library/python/testing/import_test/import_test.py @@ -39,6 +39,9 @@ def check_imports(no_check=(), extra=(), skip_func=None, py_main=None): exceptions.sort() print('NO_CHECK_IMPORTS', ' '.join(exceptions)) + # all test modules get imported when tests are run + exceptions.append('__tests__.*') + patterns = [re.escape(s).replace(r'\*', r'.*') for s in exceptions] rx = re.compile('^({})$'.format('|'.join(patterns))) |