diff --git a/Doc/library/test.rst b/Doc/library/test.rst index 660c4a464b4921..427953e0077aab 100644 --- a/Doc/library/test.rst +++ b/Doc/library/test.rst @@ -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 ` - is available. - - .. decorator:: cpython_only Decorator for tests only applicable to CPython. diff --git a/Lib/test/test_stable_abi_ctypes.py b/Lib/test/test_stable_abi_ctypes.py index 288b9eaa58e813..18c85061ca0893 100644 --- a/Lib/test/test_stable_abi_ctypes.py +++ b/Lib/test/test_stable_abi_ctypes.py @@ -1,4 +1,5 @@ -# Generated by Tools/build/stable_abi.py + +# Generated by Tools/scripts/stable_abi.py """Test that all symbols of the Stable ABI are accessible using ctypes """ diff --git a/Modules/_testcapi_feature_macros.inc b/Modules/_testcapi_feature_macros.inc index a076e714980074..b1763b57d913c2 100644 --- a/Modules/_testcapi_feature_macros.inc +++ b/Modules/_testcapi_feature_macros.inc @@ -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. diff --git a/PC/python3dll.c b/PC/python3dll.c index 690262eea6b64e..50e7a9607bec95 100755 --- a/PC/python3dll.c +++ b/PC/python3dll.c @@ -1,3 +1,4 @@ + /* Re-export stable Python ABI */ /* Generated by Tools/scripts/stable_abi.py */ diff --git a/Tools/scripts/stable_abi.py b/Tools/scripts/stable_abi.py index aa68c95b7c702b..f5a9f8d2dd617b 100755 --- a/Tools/scripts/stable_abi.py +++ b/Tools/scripts/stable_abi.py @@ -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 */ @@ -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 """ @@ -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()