summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_patma.py
Commit message (Collapse)AuthorAgeFilesLines
* gh-123562: Improve `SyntaxError` message for `case ... as a.b` (#123563)sobolevn2024-09-021-0/+7
|
* gh-123048: Fix missing source location in pattern matching code (#123167)Irit Katriel2024-08-201-0/+19
|
* Test syntax error on comma-less tuple-style sequence patterns (#115485)da-woods2024-05-011-0/+8
| | | | | 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.
* gh-110686: Test pattern matching with `runtime_checkable` protocols (#110687)Nikita Sobolev2023-12-101-0/+155
|
* GH-106135: Add more edge-"cases" to test_patma (GH-106271)Nikita Sobolev2023-06-301-0/+131
|
* GH-103971: Forward-port test from GH-103980 (GH-103984)Tian Gao2023-04-281-0/+13
|
* gh-94499 Add test for private name mangling in class pattern matching (#94500)da-woods2022-07-131-0/+14
| | | | | | | The current status quo is that private attribute names are not mangled when a class is matched. I've added a test to document/legimize this behaviour. Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
* gh-93671: Avoid exponential backtracking in deeply nested sequence patterns ↵Pablo Galindo Salgado2022-06-101-0/+21
| | | | | in match statements (GH-93680) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-45045: Optimize mapping patterns of structural pattern matching (GH-28043)Dong-hee Na2021-08-301-0/+13
|
* bpo-44600: Refactor new tracing tests (GH-27396)Brandt Bucher2021-07-281-67/+74
|
* bpo-44600: Fix line numbers for pattern matching cleanup code (GH-27346)Charles Burkland2021-07-251-0/+76
|
* bpo-44589: raise a SyntaxError when mapping patterns have duplicate literal ↵Jack DeVries2021-07-151-11/+34
| | | | keys (GH-27131)
* bpo-43977: Properly update the tp_flags of existing subclasses when their ↵Brandt Bucher2021-06-251-23/+87
| | | | parents are registered (GH-26864)
* Reorganize the pattern matching suite (GH-26661)Brandt Bucher2021-06-181-548/+497
|
* bpo-43977: Make sure that tp_flags for pattern matching are inherited ↵Mark Shannon2021-05-021-0/+41
| | | | correctly. (GH-25813)
* bpo-43754: Eliminate bindings for partial pattern matches (GH-25229)Brandt Bucher2021-05-021-3/+77
|
* bpo-43892: Validate the first term of complex literal value patterns (GH-25735)Brandt Bucher2021-04-301-0/+32
|
* bpo-43892: Make match patterns explicit in the AST (GH-25585)Nick Coghlan2021-04-291-0/+16
| | | Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
* bpo-42128: __match_args__ can't be a list anymore (GH-25203)Brandt Bucher2021-04-061-7/+23
|
* bpo-42128: Structural Pattern Matching (PEP 634) (GH-22917)Brandt Bucher2021-02-261-0/+2878
Co-authored-by: Guido van Rossum <guido@python.org> Co-authored-by: Talin <viridia@gmail.com> Co-authored-by: Pablo Galindo <pablogsal@gmail.com>