Ignore CPython specific testing/template modules. [skip ci]

This commit is contained in:
jfh
2021-10-07 22:42:42 +03:00
parent cb87fa3562
commit 2d36e1dc2d

View File

@@ -48,6 +48,13 @@ PEP_594_MODULES = {
"xdrlib",
}
# CPython specific modules (mostly consisting of templates/tests)
CPYTHON_SPECIFIC_MODS = {
'xxmodule', 'xxsubtype', 'xxlimited', '_xxtestfuzz'
'_testbuffer', '_testcapi', '_testimportmultiple', '_testinternalcapi', '_testmultiphase',
}
IGNORED_MODULES = {'this', 'antigravity'} | PEP_594_MODULES | CPYTHON_SPECIFIC_MODS
sys.path = [
path
@@ -210,7 +217,7 @@ def gen_modules():
# e.g. printing something or opening a webpage
modules = {}
for mod_name in scan_modules():
if mod_name in ("this", "antigravity") or mod_name in PEP_594_MODULES:
if mod_name in IGNORED_MODULES:
continue
# when generating CPython list, ignore items defined by other modules
dir_result = dir_of_mod_or_error(mod_name, keep_other=False)