Remove Python 3.4 support (#3147)

Closes #3123
This commit is contained in:
Sebastian Rittau
2019-07-27 10:58:21 +02:00
committed by GitHub
parent 4697adcb1a
commit 9ccf9356bf
55 changed files with 988 additions and 1266 deletions

View File

@@ -7,19 +7,13 @@ from typing import Any, Callable, List, Optional, Sequence, Type
class TestLoader:
if sys.version_info >= (3, 5):
errors: List[Type[BaseException]]
errors: List[Type[BaseException]]
testMethodPrefix: str
sortTestMethodsUsing: Callable[[str, str], bool]
suiteClass: Callable[[List[unittest.case.TestCase]], unittest.suite.TestSuite]
def loadTestsFromTestCase(self,
testCaseClass: Type[unittest.case.TestCase]) -> unittest.suite.TestSuite: ...
if sys.version_info >= (3, 5):
def loadTestsFromModule(self, module: ModuleType,
*, pattern: Any = ...) -> unittest.suite.TestSuite: ...
else:
def loadTestsFromModule(self,
module: ModuleType) -> unittest.suite.TestSuite: ...
def loadTestsFromModule(self, module: ModuleType, *, pattern: Any = ...) -> unittest.suite.TestSuite: ...
def loadTestsFromName(self, name: str,
module: Optional[ModuleType] = ...) -> unittest.suite.TestSuite: ...
def loadTestsFromNames(self, names: Sequence[str],

View File

@@ -23,18 +23,16 @@ class TestRunner:
class TextTestRunner(TestRunner):
if sys.version_info >= (3, 5):
def __init__(self, stream: Optional[TextIO] = ...,
descriptions: bool = ..., verbosity: int = ...,
failfast: bool = ..., buffer: bool = ...,
resultclass: Optional[_ResultClassType] = ...,
warnings: Optional[Type[Warning]] = ...,
*, tb_locals: bool = ...) -> None: ...
else:
def __init__(self,
stream: Optional[TextIO] = ...,
descriptions: bool = ..., verbosity: int = ...,
failfast: bool = ..., buffer: bool = ...,
resultclass: Optional[_ResultClassType] = ...,
warnings: Optional[Type[Warning]] = ...) -> None: ...
def __init__(
self,
stream: Optional[TextIO] = ...,
descriptions: bool = ...,
verbosity: int = ...,
failfast: bool = ...,
buffer: bool = ...,
resultclass: Optional[_ResultClassType] = ...,
warnings: Optional[Type[Warning]] = ...,
*,
tb_locals: bool = ...,
) -> None: ...
def _makeResult(self) -> unittest.result.TestResult: ...