Stubtest exceptions for sys, symtable, sysconfig and tarfile (#5138)

This commit is contained in:
hatal175
2021-03-27 07:33:19 +03:00
committed by GitHub
parent 839d711c6f
commit 20a6de8fdd
5 changed files with 17 additions and 12 deletions

View File

@@ -77,7 +77,7 @@ smtplib.SMTP.sendmail
sre_constants.RANGE_IGNORE
ssl.PROTOCOL_SSLv3
ssl.RAND_egd
sys.UnraisableHookArgs
sys.UnraisableHookArgs # Not exported from sys
types.ClassMethodDescriptorType.__get__
types.CodeType.replace
types.MethodDescriptorType.__get__

View File

@@ -102,7 +102,7 @@ ssl.AF_INET
ssl.PROTOCOL_SSLv3
ssl.RAND_egd
symtable.SymbolTable.has_exec
sys.UnraisableHookArgs
sys.UnraisableHookArgs # Not exported from sys
time.CLOCK_PROF
time.CLOCK_UPTIME
types.ClassMethodDescriptorType.__get__

View File

@@ -362,13 +362,11 @@ sunau.Au_write.getmark
sunau.Au_write.getmarkers
sunau.Au_write.setcomptype
sunau.Au_write.setmark
symtable.Symbol.__init__
symtable.SymbolTable.__init__
sys.gettotalrefcount
sys.implementation
sysconfig.is_python_build
sysconfig.parse_config_h
tarfile.TarFile.errors
sys.gettotalrefcount # Available on python debug builds
sys.implementation # Actually SimpleNamespace but then you wouldn't have convenient attributes
tarfile.TarFile.errors # errors is initialized for some reason as None even though it really only accepts str
# SpooledTemporaryFile implements IO except these methods
# See also https://github.com/python/typeshed/pull/2452#issuecomment-420657918
tempfile.SpooledTemporaryFile.__next__
tempfile.SpooledTemporaryFile.readable
tempfile.SpooledTemporaryFile.seekable