]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-106970: Fix Argument Clinic 'destination <name> clear' command (#106972...
authorErlend E. Aasland <erlend@python.org>
Sat, 22 Jul 2023 17:44:11 +0000 (19:44 +0200)
committerGitHub <noreply@github.com>
Sat, 22 Jul 2023 17:44:11 +0000 (17:44 +0000)
commit63c945a3f540a30288f21cb730a9da8bd4bf0ab6
tree0122a0782503d305c447ca9288c8c731dcca2eb5
parentb71144193b5e7aec022a946a2e36f902280d7c30
[3.11] gh-106970: Fix Argument Clinic 'destination <name> clear' command (#106972) (#107059)

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().

(cherry picked from commit 3372bcba9893030e4063a9264ec0b4d1b6166883)
Lib/test/clinic.test.c
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