mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Clean up several version-dependent modules (#6885)
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import sys
|
||||
from unittest.async_case import *
|
||||
|
||||
from .case import (
|
||||
FunctionTestCase as FunctionTestCase,
|
||||
@@ -29,6 +28,8 @@ from .signals import (
|
||||
from .suite import BaseTestSuite as BaseTestSuite, TestSuite as TestSuite
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
from unittest.async_case import *
|
||||
|
||||
from .case import addModuleCleanup as addModuleCleanup
|
||||
|
||||
def load_tests(loader: TestLoader, tests: TestSuite, pattern: str | None) -> TestSuite: ...
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
import sys
|
||||
from typing import Any, Awaitable, Callable
|
||||
|
||||
from .case import TestCase
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
class IsolatedAsyncioTestCase(TestCase):
|
||||
async def asyncSetUp(self) -> None: ...
|
||||
async def asyncTearDown(self) -> None: ...
|
||||
def addAsyncCleanup(self, __func: Callable[..., Awaitable[Any]], *args: Any, **kwargs: Any) -> None: ...
|
||||
class IsolatedAsyncioTestCase(TestCase):
|
||||
async def asyncSetUp(self) -> None: ...
|
||||
async def asyncTearDown(self) -> None: ...
|
||||
def addAsyncCleanup(self, __func: Callable[..., Awaitable[Any]], *args: Any, **kwargs: Any) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user