Skip to content

Commit

Permalink
Skip the test for PyModule_Create2 & PyModule_FromDefAndSpec2
Browse files Browse the repository at this point in the history
These aren't exported on some platforms.
All the others should still be tested, though, to make sure
they don't disappear.
  • Loading branch information
encukou committed Oct 21, 2021
1 parent b5f7f0f commit a0c765a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Lib/test/test_stable_abi_ctypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,9 +393,7 @@ def test_available_symbols(self):
"PyModule_AddObjectRef",
"PyModule_AddStringConstant",
"PyModule_AddType",
"PyModule_Create2",
"PyModule_ExecDef",
"PyModule_FromDefAndSpec2",
"PyModule_GetDef",
"PyModule_GetDict",
"PyModule_GetFilename",
Expand Down
6 changes: 6 additions & 0 deletions Tools/scripts/stable_abi.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,12 @@ def test_available_symbols(self):
include_abi_only=True,
ifdef=set())
for item in items:
if item.name in (
# Some symbols aren't exported on all platforms.
# This is a bug: https://bugs.python.org/issue44133
'PyModule_Create2', 'PyModule_FromDefAndSpec2',
):
continue
write(f' "{item.name}",')
write(")")

Expand Down

0 comments on commit a0c765a

Please sign in to comment.