|
100 | 100 | This test just checks a couple of cases rather than enumerating all of |
101 | 101 | them. |
102 | 102 |
|
103 | | -# All of the following also produce different error messages with pegen |
104 | | -# >>> (a, "b", c) = (1, 2, 3) |
105 | | -# Traceback (most recent call last): |
106 | | -# SyntaxError: cannot assign to literal |
| 103 | +>>> (a, "b", c) = (1, 2, 3) |
| 104 | +Traceback (most recent call last): |
| 105 | +SyntaxError: cannot assign to literal |
107 | 106 |
|
108 | | -# >>> (a, True, c) = (1, 2, 3) |
109 | | -# Traceback (most recent call last): |
110 | | -# SyntaxError: cannot assign to True |
| 107 | +>>> (a, True, c) = (1, 2, 3) |
| 108 | +Traceback (most recent call last): |
| 109 | +SyntaxError: cannot assign to True |
111 | 110 |
|
112 | 111 | >>> (a, __debug__, c) = (1, 2, 3) |
113 | 112 | Traceback (most recent call last): |
114 | 113 | SyntaxError: cannot assign to __debug__ |
115 | 114 |
|
116 | | -# >>> (a, *True, c) = (1, 2, 3) |
117 | | -# Traceback (most recent call last): |
118 | | -# SyntaxError: cannot assign to True |
| 115 | +>>> (a, *True, c) = (1, 2, 3) |
| 116 | +Traceback (most recent call last): |
| 117 | +SyntaxError: cannot assign to True |
119 | 118 |
|
120 | 119 | >>> (a, *__debug__, c) = (1, 2, 3) |
121 | 120 | Traceback (most recent call last): |
122 | 121 | SyntaxError: cannot assign to __debug__ |
123 | 122 |
|
124 | | -# >>> [a, b, c + 1] = [1, 2, 3] |
125 | | -# Traceback (most recent call last): |
126 | | -# SyntaxError: cannot assign to operator |
| 123 | +>>> [a, b, c + 1] = [1, 2, 3] |
| 124 | +Traceback (most recent call last): |
| 125 | +SyntaxError: cannot assign to operator |
127 | 126 |
|
128 | 127 | >>> a if 1 else b = 1 |
129 | 128 | Traceback (most recent call last): |
|
0 commit comments