mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
mypy: Use Python 3 syntax for typing in test_runner.py
This commit is contained in:
committed by
Tim Abbott
parent
7ed76eeb23
commit
008e250668
@@ -434,9 +434,10 @@ class Runner(DiscoverRunner):
|
|||||||
break
|
break
|
||||||
check_import_error(test_name)
|
check_import_error(test_name)
|
||||||
|
|
||||||
def run_tests(self, test_labels, extra_tests=None,
|
def run_tests(self, test_labels: List[str],
|
||||||
full_suite=False, **kwargs):
|
extra_tests: Optional[List[TestCase]]=None,
|
||||||
# type: (List[str], Optional[List[TestCase]], bool, **Any) -> Tuple[bool, List[str]]
|
full_suite: bool=False,
|
||||||
|
**kwargs: Any) -> Tuple[bool, List[str]]:
|
||||||
self.setup_test_environment()
|
self.setup_test_environment()
|
||||||
try:
|
try:
|
||||||
suite = self.build_suite(test_labels, extra_tests)
|
suite = self.build_suite(test_labels, extra_tests)
|
||||||
|
|||||||
Reference in New Issue
Block a user