aboutsummaryrefslogtreecommitdiffstats
path: root/library/python/testing
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
commit93e9e4639b6ee2afbdf45cf3927cea6d340e19b0 (patch)
tree9814fbd1c3effac9b8377c5d604b367b14e2db55 /library/python/testing
parent5a176099114d03d5669e95a55a3a514bd24dd8b1 (diff)
downloadydb-93e9e4639b6ee2afbdf45cf3927cea6d340e19b0.tar.gz
Restoring authorship annotation for <mstebelev@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/python/testing')
-rw-r--r--library/python/testing/import_test/import_test.py16
-rw-r--r--library/python/testing/yatest_lib/external.py6
2 files changed, 11 insertions, 11 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)
diff --git a/library/python/testing/yatest_lib/external.py b/library/python/testing/yatest_lib/external.py
index 5c59a09d34..39113230d9 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)))