diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-07-04 12:17:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-04 12:17:05 (GMT) |
commit | fda297031bba7c4e46b5959ebaa9c48ca11bb5f4 (patch) | |
tree | e6426e3bd903065dfc0d90d0a1277bc4ab19ca88 /Tools | |
parent | b84365fe3eaa52bac8ffa7369ad0496a807aa8a7 (diff) | |
download | cpython-fda297031bba7c4e46b5959ebaa9c48ca11bb5f4.zip cpython-fda297031bba7c4e46b5959ebaa9c48ca11bb5f4.tar.gz cpython-fda297031bba7c4e46b5959ebaa9c48ca11bb5f4.tar.bz2 |
[3.12] gh-106368: Add tests for permutation helpers in Argument Clinic (GH-106407) (#106409)
Added new test class PermutationTests()
(cherry picked from commit 8f6df5e9cbc3a1689601714192aa6ecbb23e1927)
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/clinic/clinic.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py index d67479c..fa6c139 100755 --- a/Tools/clinic/clinic.py +++ b/Tools/clinic/clinic.py @@ -509,7 +509,7 @@ class PythonLanguage(Language): def permute_left_option_groups(l): """ - Given [1, 2, 3], should yield: + Given [(1,), (2,), (3,)], should yield: () (3,) (2, 3) @@ -524,7 +524,7 @@ def permute_left_option_groups(l): def permute_right_option_groups(l): """ - Given [1, 2, 3], should yield: + Given [(1,), (2,), (3,)], should yield: () (1,) (1, 2) |