diff --git a/extra_tests/not_impl_gen.py b/extra_tests/not_impl_gen.py index c1695a119..0c5f65f24 100644 --- a/extra_tests/not_impl_gen.py +++ b/extra_tests/not_impl_gen.py @@ -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)