There was an error while loading. Please reload this page.
1 parent 2d85a55 commit 443151aCopy full SHA for 443151a
1 file changed
test-data/unit/parse-errors.test
@@ -166,7 +166,9 @@ def foo(
166
[out]
167
file:1: error: Unexpected EOF while parsing
168
169
-[case testInvalidSignatureInComment1]
+-- TODO: new parser silently ignores regular type comment in this situation.
170
+-- For various reasons, matching behavior with the old parser is non-trivial.
171
+[case testInvalidSignatureInComment1_old_parser]
172
def f(): # type: x
173
pass
174
@@ -197,7 +199,7 @@ def f(): # type: (x
197
199
198
200
file:1: error: Syntax error in type comment "(x"
201
-[case testInvalidSignatureInComment6]
202
+[case testInvalidSignatureInComment6_old_parser]
203
def f(): # type: (x)
204
205
0 commit comments