Skip to content

Commit 3b2ae03

Browse files
author
hauntsaninja
committed
stubtest_test: add whitelists
1 parent 33244b7 commit 3b2ae03

File tree

5 files changed

+1610
-0
lines changed

5 files changed

+1610
-0
lines changed

tests/stubtest_whitelists/py35.txt

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
asyncio.Future._callbacks
2+
asyncio.Future._exception
3+
asyncio.Future._loop
4+
asyncio.Future._tb_logger
5+
asyncio.Task.__init__
6+
asyncio.constants.DEBUG_STACK_DEPTH
7+
asyncio.constants.SENDFILE_FALLBACK_READBUFFER_SIZE
8+
asyncio.constants.SSL_HANDSHAKE_TIMEOUT
9+
asyncio.exceptions
10+
asyncio.futures.Future._callbacks
11+
asyncio.futures.Future._exception
12+
asyncio.futures.Future._loop
13+
asyncio.futures.Future._tb_logger
14+
asyncio.futures._TracebackLogger.__init__
15+
asyncio.protocols.BufferedProtocol
16+
asyncio.runners
17+
asyncio.tasks.Task.__init__
18+
bdb.GENERATOR_AND_COROUTINE_FLAGS
19+
builtins.str.maketrans
20+
cgi.escape
21+
cmath.log
22+
codecs.StreamRecoder.seek
23+
collections.Reversible
24+
collections.UserString.maketrans
25+
ctypes.CDLL.__init__
26+
decimal.Decimal.as_integer_ratio
27+
gettext.NullTranslations.npgettext
28+
gettext.NullTranslations.pgettext
29+
gettext.dnpgettext
30+
gettext.dpgettext
31+
gettext.npgettext
32+
gettext.pgettext
33+
importlib.metadata
34+
importlib.resources
35+
io.BufferedRandom.read1
36+
io.BufferedReader.read1
37+
io.StringIO.readline
38+
ipaddress._BaseNetwork.__init__
39+
macpath.basename
40+
macpath.commonpath
41+
macpath.commonprefix
42+
macpath.dirname
43+
macpath.getatime
44+
macpath.getctime
45+
macpath.getmtime
46+
macpath.getsize
47+
macpath.isabs
48+
macpath.isdir
49+
macpath.islink
50+
macpath.ismount
51+
macpath.join
52+
macpath.normpath
53+
macpath.realpath
54+
macpath.relpath
55+
macpath.samefile
56+
macpath.samestat
57+
macpath.split
58+
macpath.splitdrive
59+
macpath.splitext
60+
mmap.ACCESS_DEFAULT
61+
modulefinder.ModuleFinder.scan_opcodes
62+
multiprocessing.context.BaseContext.reducer
63+
multiprocessing.shared_memory
64+
os.DirEntry
65+
os.utime
66+
pyexpat.XMLParserType.ExternalEntityParserCreate
67+
smtpd.SMTPChannel.__init__
68+
smtpd.SMTPServer.__init__
69+
socket.NETLINK_CRYPTO
70+
sre_compile.dis
71+
sre_parse.GLOBAL_FLAGS
72+
sre_parse.Tokenizer.pos
73+
sre_parse.Verbose
74+
subprocess.check_output
75+
tracemalloc.Filter.__init__
76+
typing.AbstractSet.isdisjoint
77+
typing.Coroutine.cr_await
78+
typing.Coroutine.cr_code
79+
typing.Coroutine.cr_frame
80+
typing.Coroutine.cr_running
81+
typing.Generator.gi_code
82+
typing.Generator.gi_frame
83+
typing.Generator.gi_running
84+
typing.Generator.gi_yieldfrom
85+
typing.Mapping.get
86+
typing.MutableMapping.pop
87+
typing.MutableMapping.setdefault
88+
typing.MutableSequence.append
89+
typing.MutableSequence.extend
90+
typing.MutableSequence.insert
91+
typing.MutableSequence.remove
92+
typing.MutableSet.add
93+
typing.MutableSet.discard
94+
typing.MutableSet.remove
95+
typing.Protocol
96+
typing.Sequence.count
97+
typing.Sequence.index
98+
typing.Type
99+
typing.runtime_checkable
100+
unittest.async_case
101+
uuid.UUID.int
102+
uuid.getnode
103+
xml.etree.cElementTree.XMLPullParser
104+
xml.parsers.expat.XMLParserType.ExternalEntityParserCreate
105+
zipfile.ZipFile.open
106+
zlib.compress

tests/stubtest_whitelists/py36.txt

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
asyncio.Future.__init__
2+
asyncio.Task._wakeup
3+
asyncio.constants.SENDFILE_FALLBACK_READBUFFER_SIZE
4+
asyncio.constants.SSL_HANDSHAKE_TIMEOUT
5+
asyncio.exceptions
6+
asyncio.futures.Future.__init__
7+
asyncio.futures._TracebackLogger.__init__
8+
asyncio.protocols.BufferedProtocol
9+
asyncio.runners
10+
asyncio.tasks.Task._wakeup
11+
builtins.str.maketrans
12+
cgi.escape
13+
cmath.log
14+
codecs.StreamRecoder.seek
15+
collections.AsyncGenerator.ag_await
16+
collections.AsyncGenerator.ag_code
17+
collections.AsyncGenerator.ag_frame
18+
collections.AsyncGenerator.ag_running
19+
collections.UserString.maketrans
20+
collections.abc.AsyncGenerator.ag_await
21+
collections.abc.AsyncGenerator.ag_code
22+
collections.abc.AsyncGenerator.ag_frame
23+
collections.abc.AsyncGenerator.ag_running
24+
copy.PyStringMap
25+
ctypes.CDLL.__init__
26+
email.message.MIMEPart.as_string
27+
email.mime.message.MIMEMessage.__init__
28+
email.mime.text.MIMEText.__init__
29+
enum.Enum._generate_next_value_
30+
gettext.NullTranslations.npgettext
31+
gettext.NullTranslations.pgettext
32+
gettext.dnpgettext
33+
gettext.dpgettext
34+
gettext.npgettext
35+
gettext.pgettext
36+
importlib.metadata
37+
importlib.resources
38+
io.BufferedRandom.read1
39+
io.BufferedReader.read1
40+
io.StringIO.readline
41+
ipaddress._BaseNetwork.__init__
42+
json.dump
43+
json.dumps
44+
json.load
45+
json.loads
46+
logging.handlers.MemoryHandler.__init__
47+
macpath.basename
48+
macpath.commonpath
49+
macpath.commonprefix
50+
macpath.dirname
51+
macpath.getatime
52+
macpath.getctime
53+
macpath.getmtime
54+
macpath.getsize
55+
macpath.isabs
56+
macpath.isdir
57+
macpath.islink
58+
macpath.ismount
59+
macpath.join
60+
macpath.normpath
61+
macpath.realpath
62+
macpath.relpath
63+
macpath.samefile
64+
macpath.samestat
65+
macpath.split
66+
macpath.splitdrive
67+
macpath.splitext
68+
mmap.ACCESS_DEFAULT
69+
multiprocessing.shared_memory
70+
os.utime
71+
pyexpat.XMLParserType.ExternalEntityParserCreate
72+
secrets.SystemRandom.getstate
73+
smtplib.SMTP.sendmail
74+
sre_compile.dis
75+
ssl.SSLContext.wrap_bio
76+
ssl.SSLContext.wrap_socket
77+
tkinter.Menu.tk_bindForTraversal
78+
tkinter.Misc.tk_menuBar
79+
typing.AbstractSet.isdisjoint
80+
typing.AsyncGenerator.ag_await
81+
typing.AsyncGenerator.ag_code
82+
typing.AsyncGenerator.ag_frame
83+
typing.AsyncGenerator.ag_running
84+
typing.Coroutine.cr_await
85+
typing.Coroutine.cr_code
86+
typing.Coroutine.cr_frame
87+
typing.Coroutine.cr_running
88+
typing.Generator.gi_code
89+
typing.Generator.gi_frame
90+
typing.Generator.gi_running
91+
typing.Generator.gi_yieldfrom
92+
typing.Mapping.get
93+
typing.MutableMapping.pop
94+
typing.MutableMapping.setdefault
95+
typing.MutableSequence.append
96+
typing.MutableSequence.extend
97+
typing.MutableSequence.insert
98+
typing.MutableSequence.remove
99+
typing.MutableSet.add
100+
typing.MutableSet.discard
101+
typing.MutableSet.remove
102+
typing.Protocol
103+
typing.Sequence.count
104+
typing.Sequence.index
105+
typing.Type
106+
typing.runtime_checkable
107+
unittest.async_case
108+
urllib.parse.parse_qs
109+
urllib.parse.parse_qsl
110+
uuid.UUID.int
111+
uuid.getnode
112+
webbrowser.Opera.raise_opts
113+
xml.parsers.expat.XMLParserType.ExternalEntityParserCreate

tests/stubtest_whitelists/py37.txt

Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
_bisect.bisect
2+
_bisect.insort
3+
_tracemalloc._get_object_traceback
4+
_tracemalloc.start
5+
asyncio.AbstractEventLoop.create_unix_server
6+
asyncio.AbstractEventLoop.sock_sendfile
7+
asyncio.Future.__init__
8+
asyncio.Future._callbacks
9+
asyncio.Future._schedule_callbacks
10+
asyncio.Handle.__init__
11+
asyncio.TimerHandle.__init__
12+
asyncio.events.AbstractEventLoop.create_unix_server
13+
asyncio.events.AbstractEventLoop.sock_sendfile
14+
asyncio.events.Handle.__init__
15+
asyncio.events.TimerHandle.__init__
16+
asyncio.exceptions
17+
asyncio.futures.Future.__init__
18+
asyncio.futures.Future._callbacks
19+
asyncio.futures.Future._schedule_callbacks
20+
asyncio.proactor_events.BaseProactorEventLoop.create_unix_server
21+
asyncio.selector_events.BaseSelectorEventLoop.create_unix_server
22+
builtins.dict.get
23+
builtins.reversed
24+
builtins.str.maketrans
25+
cgi.escape
26+
cmath.log
27+
collections.AsyncGenerator.ag_await
28+
collections.AsyncGenerator.ag_code
29+
collections.AsyncGenerator.ag_frame
30+
collections.AsyncGenerator.ag_running
31+
collections.UserString.maketrans
32+
collections.abc.AsyncGenerator.ag_await
33+
collections.abc.AsyncGenerator.ag_code
34+
collections.abc.AsyncGenerator.ag_frame
35+
collections.abc.AsyncGenerator.ag_running
36+
concurrent.futures.BrokenThreadPool
37+
contextvars.Context.__init__
38+
contextvars.Context.get
39+
copy.PyStringMap
40+
ctypes.CDLL.__init__
41+
dataclasses.dataclass
42+
dataclasses.field
43+
dataclasses.make_dataclass
44+
email.message.MIMEPart.as_string
45+
email.mime.message.MIMEMessage.__init__
46+
email.mime.text.MIMEText.__init__
47+
enum.Enum._generate_next_value_
48+
gc.collect
49+
gettext.NullTranslations.npgettext
50+
gettext.NullTranslations.pgettext
51+
gettext.dnpgettext
52+
gettext.dpgettext
53+
gettext.npgettext
54+
gettext.pgettext
55+
http.client.HTTPSConnection.__init__
56+
http.server.SimpleHTTPRequestHandler.__init__
57+
importlib.metadata
58+
ipaddress._BaseNetwork.__init__
59+
json.dump
60+
json.dumps
61+
json.load
62+
json.loads
63+
logging.handlers.MemoryHandler.__init__
64+
macpath.basename
65+
macpath.commonpath
66+
macpath.commonprefix
67+
macpath.dirname
68+
macpath.getatime
69+
macpath.getctime
70+
macpath.getmtime
71+
macpath.getsize
72+
macpath.isabs
73+
macpath.isdir
74+
macpath.islink
75+
macpath.ismount
76+
macpath.join
77+
macpath.normpath
78+
macpath.realpath
79+
macpath.relpath
80+
macpath.samefile
81+
macpath.samestat
82+
macpath.split
83+
macpath.splitdrive
84+
macpath.splitext
85+
marshal.loads
86+
multiprocessing.shared_memory
87+
os.utime
88+
pyclbr.Class.__init__
89+
pyclbr.Function.__init__
90+
pyexpat.XMLParserType.ExternalEntityParserCreate
91+
queue.SimpleQueue.__init__
92+
secrets.SystemRandom.getstate
93+
smtplib.SMTP.sendmail
94+
sre_constants.RANGE_IGNORE
95+
ssl.SSLContext.wrap_bio
96+
ssl.SSLContext.wrap_socket
97+
struct.calcsize
98+
struct.iter_unpack
99+
struct.unpack
100+
struct.unpack_from
101+
time.CLOCK_PROF
102+
time.CLOCK_UPTIME
103+
tkinter.Menu.tk_bindForTraversal
104+
tkinter.Misc.tk_menuBar
105+
tracemalloc.Traceback.format
106+
types.ClassMethodDescriptorType.__get__
107+
types.MethodDescriptorType.__get__
108+
types.WrapperDescriptorType.__get__
109+
typing.AbstractSet
110+
typing.AsyncContextManager
111+
typing.AsyncGenerator
112+
typing.AsyncIterable
113+
typing.AsyncIterator
114+
typing.Awaitable
115+
typing.ByteString
116+
typing.Collection
117+
typing.Container
118+
typing.ContextManager
119+
typing.Coroutine
120+
typing.Generator
121+
typing.GenericMeta
122+
typing.Hashable
123+
typing.ItemsView
124+
typing.Iterable
125+
typing.Iterator
126+
typing.KeysView
127+
typing.Mapping
128+
typing.MappingView
129+
typing.MutableMapping
130+
typing.MutableSequence
131+
typing.MutableSet
132+
typing.Optional
133+
typing.Protocol
134+
typing.Reversible
135+
typing.Sequence
136+
typing.Sized
137+
typing.Union
138+
typing.ValuesView
139+
typing.runtime_checkable
140+
unittest.async_case
141+
urllib.parse.parse_qs
142+
urllib.parse.parse_qsl
143+
uuid.UUID.int
144+
uuid.UUID.is_safe
145+
webbrowser.Opera.raise_opts
146+
xml.parsers.expat.XMLParserType.ExternalEntityParserCreate
147+
zipfile.ZipExtFile.__init__

0 commit comments

Comments
 (0)