]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-106970: Fix Argument Clinic 'destination <name> clear' command (#106972)
authorErlend E. Aasland <erlend@python.org>
Sat, 22 Jul 2023 07:43:13 +0000 (09:43 +0200)
committerGitHub <noreply@github.com>
Sat, 22 Jul 2023 07:43:13 +0000 (09:43 +0200)
commit3372bcba9893030e4063a9264ec0b4d1b6166883
tree37baf56be13826ef067374004c9c25d3d9b990e6
parentcdeb1a6caad5e3067f01d6058238803b8517f9de
gh-106970: Fix Argument Clinic 'destination <name> clear' command (#106972)

Add test for the 'destination <name> clear' command,
and the 'destination' directive in general.

Fix two bugs in 'destination <name> clear' command:

1. The text attribute of the allocator is called 'text', not '_text'
2. Return after processing the 'clear' command,
   instead of proceeding directly to the fail().
Lib/test/clinic.test.c
Lib/test/test_clinic.py
Misc/NEWS.d/next/Tools-Demos/2023-07-21-23-16-05.gh-issue-106970.NLRnml.rst [new file with mode: 0644]
Tools/clinic/clinic.py