aboutsummaryrefslogtreecommitdiffstats
path: root/library/python
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
parent3c1fe03778c21d7aa4a5c4a4433ca611dbf2f785 (diff)
downloadydb-5a176099114d03d5669e95a55a3a514bd24dd8b1.tar.gz
Restoring authorship annotation for <mstebelev@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/python')
-rw-r--r--library/python/testing/import_test/import_test.py16
-rw-r--r--library/python/testing/yatest_lib/external.py6
-rw-r--r--library/python/ya.make24
3 files changed, 23 insertions, 23 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)
diff --git a/library/python/testing/yatest_lib/external.py b/library/python/testing/yatest_lib/external.py
index 39113230d9..5c59a09d34 100644
--- a/library/python/testing/yatest_lib/external.py
+++ b/library/python/testing/yatest_lib/external.py
@@ -6,7 +6,7 @@ import copy
import logging
from . import tools
-from datetime import date, datetime
+from datetime import date, datetime
import enum
import six
@@ -73,8 +73,8 @@ def serialize(value):
return val
if is_external(val):
return dict(val)
- if isinstance(val, (date, datetime)):
- return repr(val)
+ if isinstance(val, (date, datetime)):
+ return repr(val)
if is_coroutine(val):
return None
raise ValueError("Cannot serialize value '{}' of type {}".format(val, type(val)))
diff --git a/library/python/ya.make b/library/python/ya.make
index 2e1eb6e0e1..0281f9a315 100644
--- a/library/python/ya.make
+++ b/library/python/ya.make
@@ -34,7 +34,7 @@ RECURSE(
cityhash/test
clickhouse_client
cmain
- codecs
+ codecs
codecs/gen_corpus
codecs/test
compress
@@ -70,8 +70,8 @@ RECURSE(
errorboosterclient
filelock
filelock/ut
- filesys
- filesys/ut
+ filesys
+ filesys/ut
find_root
flask
flask_passport
@@ -84,8 +84,8 @@ RECURSE(
fs
geolocation
geolocation/ut
- geohash
- geohash/ut
+ geohash
+ geohash/ut
golovan_stats_aggregator
granular_settings
granular_settings/tests
@@ -123,10 +123,10 @@ RECURSE(
monlib/examples
monlib/so
murmurhash
- nirvana
- nirvana_api
- nirvana_api/test_lib
- nirvana_test
+ nirvana
+ nirvana_api
+ nirvana_api/test_lib
+ nirvana_test
nstools
nyt
oauth
@@ -137,10 +137,10 @@ RECURSE(
par_apply/test
path
path/tests
- protobuf
+ protobuf
pymain
pyscopg2
- pytest
+ pytest
pytest-mongodb
pytest/allure
pytest/empty
@@ -156,7 +156,7 @@ RECURSE(
resource
retry
retry/tests
- runtime
+ runtime
runtime/main
runtime/test
runtime_py3