From 2d36e1dc2db76122c0e4896d85de0dbc66bb39fa Mon Sep 17 00:00:00 2001 From: jfh Date: Thu, 7 Oct 2021 22:42:42 +0300 Subject: [PATCH] Ignore CPython specific testing/template modules. [skip ci] --- extra_tests/not_impl_gen.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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)