Skip to content

Commit

Permalink
Fix type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
colesbury committed Dec 16, 2024
1 parent 0735395 commit ff6b286
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Lib/test/libregrtest/parallel_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def __init__(self, test_case: TestCase, num_threads: int):
def __str__(self):
return f"{str(self.test_case)} [threads={self.num_threads}]"

def run_worker(self, test_case: TestCase, result: unittest.Result,
def run_worker(self, test_case: TestCase, result: unittest.TestResult,
barrier: threading.Barrier):
barrier.wait()
test_case.run(result)
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/libregrtest/single.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def is_thread_unsafe(test):
return (getattr(test_method, "__unittest_thread_unsafe__", False) or
getattr(instance, "__unittest_thread_unsafe__", False))

newtests = []
newtests: list[object] = []
for test in suite._tests:
if isinstance(test, unittest.TestSuite):
_parallelize_tests(test, parallel_threads)
Expand Down

0 comments on commit ff6b286

Please sign in to comment.