Commit 21c09d9
authored
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 (cython/cython#4897 (comment)) where there was a bug my the reimplementation that wasn't caught against the CPython tests here.1 parent fc7e1aa commit 21c09d9
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2957 | 2957 | | |
2958 | 2958 | | |
2959 | 2959 | | |
| 2960 | + | |
| 2961 | + | |
| 2962 | + | |
| 2963 | + | |
| 2964 | + | |
| 2965 | + | |
| 2966 | + | |
| 2967 | + | |
2960 | 2968 | | |
2961 | 2969 | | |
2962 | 2970 | | |
| |||
0 commit comments