Skip to content

Commit a0ceb34

Browse files
authored
PytestCollectionWarning has been fixed (#15821)
1 parent 7ea7699 commit a0ceb34

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

ydb/tests/olap/common/thread_helper.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33

44
class TestThread(threading.Thread):
5+
6+
__test__ = False
7+
58
def run(self) -> None:
69
self.exc = None
710
try:
@@ -16,7 +19,10 @@ def join(self, timeout=None):
1619
return self.ret
1720

1821

19-
class TestThreads():
22+
class TestThreads:
23+
24+
__test__ = False
25+
2026
def __init__(self):
2127
self.threads: list[TestThread] = list()
2228

ydb/tests/olap/scenario/helpers/scenario_tests_helper.py

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ class TestContext:
1818
1919
The class is created by the test execution system and used by {ScenarioTestHelper}."""
2020

21+
__test__ = False
22+
2123
def __init__(self, suite_name: str, test_name: str, scenario: Callable) -> None:
2224
"""Constructor.
2325

ydb/tests/olap/scenario/test_alter_tiering.py

+3
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535

3636

3737
class TestLoop:
38+
39+
__test__ = False
40+
3841
def __init__(self, duration: datetime.timedelta):
3942
self._deadline = datetime.datetime.now() + duration
4043

0 commit comments

Comments
 (0)