Skip to content

Commit 2d36e1d

Browse files
committed
Ignore CPython specific testing/template modules. [skip ci]
1 parent cb87fa3 commit 2d36e1d

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

extra_tests/not_impl_gen.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@
4848
"xdrlib",
4949
}
5050

51+
# CPython specific modules (mostly consisting of templates/tests)
52+
CPYTHON_SPECIFIC_MODS = {
53+
'xxmodule', 'xxsubtype', 'xxlimited', '_xxtestfuzz'
54+
'_testbuffer', '_testcapi', '_testimportmultiple', '_testinternalcapi', '_testmultiphase',
55+
}
56+
57+
IGNORED_MODULES = {'this', 'antigravity'} | PEP_594_MODULES | CPYTHON_SPECIFIC_MODS
5158

5259
sys.path = [
5360
path
@@ -210,7 +217,7 @@ def gen_modules():
210217
# e.g. printing something or opening a webpage
211218
modules = {}
212219
for mod_name in scan_modules():
213-
if mod_name in ("this", "antigravity") or mod_name in PEP_594_MODULES:
220+
if mod_name in IGNORED_MODULES:
214221
continue
215222
# when generating CPython list, ignore items defined by other modules
216223
dir_result = dir_of_mod_or_error(mod_name, keep_other=False)

0 commit comments

Comments
 (0)