]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Test syntax error on comma-less tuple-style sequence patterns (#115485)
authorda-woods <dw-git@d-woods.co.uk>
Wed, 1 May 2024 08:33:28 +0000 (09:33 +0100)
committerGitHub <noreply@github.com>
Wed, 1 May 2024 08:33:28 +0000 (01:33 -0700)
commit21c09d9f8195433f34b72ddfa25dd1bda3019ed7
tree4080a1b849422da72d5b86cc55ceccac9f7b1770
parentfc7e1aa3c001bbce25973261fba457035719a559
Test syntax error on comma-less tuple-style sequence patterns (#115485)

Adds a test that length-1 tuple-style sequence patterns must end in a comma, since there isn't currently one.

Spotted while reviewing Cython's proposed implementation of the pattern matching syntax (https://github.com/cython/cython/pull/4897#discussion_r1489177169) where there was a bug my the reimplementation that wasn't caught against the CPython tests here.
Lib/test/test_patma.py