Skip to content

Commit

Permalink
Re-Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Sep 26, 2023
1 parent e4154d4 commit 9cfefca
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 12 deletions.
6 changes: 0 additions & 6 deletions Doc/library/test.rst
Original file line number Diff line number Diff line change
Expand Up @@ -740,12 +740,6 @@ The :mod:`test.support` module defines the following functions:
Decorator for only running the test if :data:`HAVE_DOCSTRINGS`.


.. decorator:: requires_limited_api

Decorator for only running the test if :ref:`Limited C API <limited-c-api>`
is available.


.. decorator:: cpython_only

Decorator for tests only applicable to CPython.
Expand Down
3 changes: 2 additions & 1 deletion Lib/test/test_stable_abi_ctypes.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Modules/_testcapi_feature_macros.inc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by Tools/build/stable_abi.py
// Generated by Tools/scripts/stable_abi.py

// Add an entry in dict `result` for each Stable ABI feature macro.

Expand Down
1 change: 1 addition & 0 deletions PC/python3dll.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Tools/scripts/stable_abi.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def _decorator(func):
def gen_python3dll(manifest, args, outfile):
"""Generate/check the source for the Windows stable ABI library"""
write = partial(print, file=outfile)
write(textwrap.dedent(r"""\
write(textwrap.dedent(r"""
/* Re-export stable Python ABI */
/* Generated by Tools/scripts/stable_abi.py */
Expand Down Expand Up @@ -265,8 +265,8 @@ def gen_doc_annotations(manifest, args, outfile):
def gen_ctypes_test(manifest, args, outfile):
"""Generate/check the ctypes-based test for exported symbols"""
write = partial(print, file=outfile)
write(textwrap.dedent(f'''\
# Generated by {SCRIPT_NAME}
write(textwrap.dedent('''
# Generated by Tools/scripts/stable_abi.py
"""Test that all symbols of the Stable ABI are accessible using ctypes
"""
Expand Down Expand Up @@ -339,7 +339,7 @@ def test_windows_feature_macros(self):
def gen_testcapi_feature_macros(manifest, args, outfile):
"""Generate/check the stable ABI list for documentation annotations"""
write = partial(print, file=outfile)
write(f'// Generated by {SCRIPT_NAME}')
write('// Generated by Tools/scripts/stable_abi.py')
write()
write('// Add an entry in dict `result` for each Stable ABI feature macro.')
write()
Expand Down

0 comments on commit 9cfefca

Please sign in to comment.