]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-106970: Fix Argument Clinic 'destination <name> clear' command (GH-106972...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 22 Jul 2023 09:06:46 +0000 (02:06 -0700)
committerGitHub <noreply@github.com>
Sat, 22 Jul 2023 09:06:46 +0000 (11:06 +0200)
commit67748f18c9b53def23f7614759fb632165f50d6a
tree0d2e7c62e551c8bd6dc9199360518096975506a2
parent9cbde7c6ce6f7b93301a37f03dfa0c0d45e00a39
[3.12] gh-106970: Fix Argument Clinic 'destination <name> clear' command (GH-106972) (#106983)

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)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
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