mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
Fix unittest for 3.13 (#12307)
This commit is contained in:
@@ -6,6 +6,7 @@ import unittest.suite
|
||||
from collections.abc import Iterable
|
||||
from types import ModuleType
|
||||
from typing import Any, Protocol
|
||||
from typing_extensions import deprecated
|
||||
|
||||
MAIN_EXAMPLES: str
|
||||
MODULE_EXAMPLES: str
|
||||
@@ -61,7 +62,10 @@ class TestProgram:
|
||||
tb_locals: bool = False,
|
||||
) -> None: ...
|
||||
|
||||
def usageExit(self, msg: Any = None) -> None: ...
|
||||
if sys.version_info < (3, 13):
|
||||
@deprecated("Deprecated in Python 3.11; removal scheduled for Python 3.13")
|
||||
def usageExit(self, msg: Any = None) -> None: ...
|
||||
|
||||
def parseArgs(self, argv: list[str]) -> None: ...
|
||||
def createTests(self, from_discovery: bool = False, Loader: unittest.loader.TestLoader | None = None) -> None: ...
|
||||
def runTests(self) -> None: ... # undocumented
|
||||
|
||||
Reference in New Issue
Block a user