3.11: move some stubtest entries to wontfix list (#7876)

This commit is contained in:
Jelle Zijlstra
2022-05-18 23:14:44 -07:00
committed by GitHub
parent 4a08afcbc2
commit 4191906e6e

View File

@@ -5,7 +5,6 @@ _collections_abc.AsyncGenerator.ag_await
_collections_abc.AsyncGenerator.ag_code
_collections_abc.AsyncGenerator.ag_frame
_collections_abc.AsyncGenerator.ag_running
_collections_abc.AsyncGenerator.athrow # async at runtime, deliberately not in the stub, see #7491. Pos-only differences also.
_collections_abc.AsyncIterable.__class_getitem__
_collections_abc.Awaitable.__class_getitem__
_collections_abc.Container.__class_getitem__
@@ -21,7 +20,6 @@ _imp.get_frozen_object
_imp.source_hash
_operator.attrgetter.__vectorcalloffset__
_operator.itemgetter.__vectorcalloffset__
_weakref.ProxyType.__reversed__ # Doesn't really exist
argparse._AppendConstAction.__init__
argparse._MutuallyExclusiveGroup.add_mutually_exclusive_group
argparse._StoreConstAction.__init__
@@ -44,15 +42,12 @@ asyncio.sslproto.add_flowcontrol_defaults
bdb.Breakpoint.clearBreakpoints
binascii.a2b_base64
builtins.dict.get
builtins.property.__set_name__ # Doesn't actually exist
concurrent.futures.ProcessPoolExecutor.__init__
concurrent.futures.process.ProcessPoolExecutor.__init__
concurrent.futures.process._ResultItem.__init__
concurrent.futures.process._process_worker
concurrent.futures.process._sendback_result
configparser.LegacyInterpolation.__init__
contextlib.AbstractAsyncContextManager.__class_getitem__
contextlib.AbstractContextManager.__class_getitem__
contextvars.Context.__init__
dataclasses.KW_ONLY
dataclasses.field
@@ -70,15 +65,11 @@ distutils.dist.DistributionMetadata.set_platforms
distutils.util.get_host_platform
enum.Enum.__init__
enum.Enum._generate_next_value_
enum.StrEnum.value # read-only property at runtime but too magical for stubtest
fractions.Fraction.__int__
fractions.Fraction.__new__ # overload is too complicated for stubtest to resolve
ftplib.FTP.trust_server_pasv_ipv4_address
functools.partial.__vectorcalloffset__
gettext.install
hmac.new # Stub is a white lie; see comments in the stub
http.HTTPMethod.description # mutable instance attribute at runtime but we pretend it's a property
http.server.SimpleHTTPRequestHandler.__init__ # *args is expanded
imp.get_frozen_object
importlib.resources.Resource
inspect._ParameterKind.description
@@ -99,7 +90,6 @@ multiprocessing.spawn._main
operator.attrgetter.__vectorcalloffset__
operator.itemgetter.__vectorcalloffset__
os.popen
pickle.Pickler.reducer_override # implemented in C pickler
# platform.uname_result's processor field is now dynamically made to exist
platform.uname_result.__match_args__
platform.uname_result.__new__
@@ -117,7 +107,6 @@ pyexpat.errors.XML_ERROR_RESERVED_NAMESPACE_URI
pyexpat.errors.XML_ERROR_RESERVED_PREFIX_XML
pyexpat.errors.XML_ERROR_RESERVED_PREFIX_XMLNS
queue.SimpleQueue.__init__
re.Pattern.scanner # Undocumented and not useful. #6405
shutil.rmtree
socketserver.UDPServer.allow_reuse_port
string.Template.get_identifiers
@@ -137,9 +126,6 @@ types.CodeType.co_exceptiontable
types.CodeType.co_qualname
types.CoroutineType.cr_suspended
types.GeneratorType.gi_suspended
types.GenericAlias.__call__ # Would be complicated to fix properly, Any could silence problems. #6392
types.GenericAlias.__getattr__
types.GenericAlias.__mro_entries__
types.MethodDescriptorType.__get__
types.WrapperDescriptorType.__get__
typing.ForwardRef._evaluate
@@ -148,26 +134,12 @@ typing.NewType.__mro_entries__
typing.ParamSpec.__typing_subst__
typing.TypeVar.__typing_subst__
typing.TypeVarTuple.__typing_subst__
typing._SpecialForm.__call__
typing._SpecialForm.__init__
typing._SpecialForm.__mro_entries__
typing._TypedDict.__delitem__
typing._TypedDict.__ior__
typing._TypedDict.__or__
typing._TypedDict.copy
typing._TypedDict.items
typing._TypedDict.keys
typing._TypedDict.pop
typing._TypedDict.setdefault
typing._TypedDict.update
typing._TypedDict.values
unicodedata.UCD.is_normalized
unittest.TestCase._addSkip
unittest.case.TestCase._addSkip
unittest.doModuleCleanups
urllib.request.FancyURLopener.http_error_308
urllib.request.HTTPRedirectHandler.http_error_308
weakref.ProxyType.__reversed__ # Doesn't really exist
weakref.WeakValueDictionary.update
wsgiref.types.InputStream.read
wsgiref.types.InputStream.readline
@@ -236,6 +208,20 @@ os.path.join
# Allowlist entries that cannot or should not be fixed
# ==========
_collections_abc.AsyncGenerator.athrow # async at runtime, deliberately not in the stub, see #7491. Pos-only differences also.
_weakref.ProxyType.__reversed__ # Doesn't really exist
builtins.property.__set_name__ # Doesn't actually exist
enum.StrEnum.value # read-only property at runtime but too magical for stubtest
hmac.new # Stub is a white lie; see comments in the stub
http.HTTPMethod.description # mutable instance attribute at runtime but we pretend it's a property
http.server.SimpleHTTPRequestHandler.__init__ # *args is expanded
pickle.Pickler.reducer_override # implemented in C pickler
re.Pattern.scanner # Undocumented and not useful. #6405
types.GenericAlias.__call__ # Would be complicated to fix properly, Any could silence problems. #6392
types.GenericAlias.__getattr__
types.GenericAlias.__mro_entries__
weakref.ProxyType.__reversed__ # Doesn't really exist
# Inherits __init__ from typing.Protocol
importlib.abc.Traversable.__init__
importlib.metadata.EntryPoint.__init__
@@ -279,3 +265,23 @@ types.CodeType.replace # stubtest thinks default values are None but None doesn
# These enums derive from (str, Enum). See comment in py3_common.txt
pstats.SortKey.__new__
tkinter.EventType.__new__
# Treated an alias of a typing class in the stubs,
# they are generic to type checkers anyway.
contextlib.AbstractAsyncContextManager.__class_getitem__
contextlib.AbstractContextManager.__class_getitem__
# Super-special typing primitives
typing._SpecialForm.__call__
typing._SpecialForm.__init__
typing._SpecialForm.__mro_entries__
typing._TypedDict.__delitem__
typing._TypedDict.__ior__
typing._TypedDict.__or__
typing._TypedDict.copy
typing._TypedDict.items
typing._TypedDict.keys
typing._TypedDict.pop
typing._TypedDict.setdefault
typing._TypedDict.update
typing._TypedDict.values