mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
Ignore CPython specific testing/template modules. [skip ci]
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user