|
1027 | 1027 | SyntaxError: no binding for nonlocal 'x' found |
1028 | 1028 |
|
1029 | 1029 | From SF bug #1705365 |
1030 | | - >>> nonlocal x # TODO: RUSTPYTHON; Wrong error message # doctest: +EXPECTED_FAILURE |
| 1030 | + >>> nonlocal x |
1031 | 1031 | Traceback (most recent call last): |
1032 | 1032 | ... |
1033 | 1033 | SyntaxError: nonlocal declaration not allowed at module level |
|
1351 | 1351 |
|
1352 | 1352 | Custom error messages for try blocks that are not followed by except/finally |
1353 | 1353 |
|
1354 | | - >>> try: # TODO: RUSTPYTHON; Wrong error message # doctest: +EXPECTED_FAILURE |
| 1354 | + >>> try: |
1355 | 1355 | ... x = 34 |
1356 | 1356 | ... |
1357 | 1357 | Traceback (most recent call last): |
@@ -2660,7 +2660,7 @@ def f(x: *b) |
2660 | 2660 | ... |
2661 | 2661 | SyntaxError: yield expression cannot be used within the definition of a generic |
2662 | 2662 |
|
2663 | | - >>> f(**x, *y) # TODO: RUSTPYTHON; Wrong error message # doctest: +EXPECTED_FAILURE |
| 2663 | + >>> f(**x, *y) |
2664 | 2664 | Traceback (most recent call last): |
2665 | 2665 | SyntaxError: iterable argument unpacking follows keyword argument unpacking |
2666 | 2666 |
|
@@ -2936,18 +2936,15 @@ def test_bad_outdent(self): |
2936 | 2936 | "unindent does not match .* level", |
2937 | 2937 | subclass=IndentationError) |
2938 | 2938 |
|
2939 | | - @unittest.expectedFailure # TODO: RUSTPYTHON |
2940 | 2939 | def test_kwargs_last(self): |
2941 | 2940 | self._check_error("int(base=10, '2')", |
2942 | 2941 | "positional argument follows keyword argument") |
2943 | 2942 |
|
2944 | | - @unittest.expectedFailure # TODO: RUSTPYTHON |
2945 | 2943 | def test_kwargs_last2(self): |
2946 | 2944 | self._check_error("int(**{'base': 10}, '2')", |
2947 | 2945 | "positional argument follows " |
2948 | 2946 | "keyword argument unpacking") |
2949 | 2947 |
|
2950 | | - @unittest.expectedFailure # TODO: RUSTPYTHON |
2951 | 2948 | def test_kwargs_last3(self): |
2952 | 2949 | self._check_error("int(**{'base': 10}, *['2'])", |
2953 | 2950 | "iterable argument unpacking follows " |
|
0 commit comments