(self)
| 3040 | self._check_error(source, "parameter and nonlocal", lineno=3) |
| 3041 | |
| 3042 | def test_raise_from_error_message(self): |
| 3043 | source = """if 1: |
| 3044 | raise AssertionError() from None |
| 3045 | print(1,,2) |
| 3046 | """ |
| 3047 | self._check_error(source, "invalid syntax", lineno=3) |
| 3048 | |
| 3049 | def test_yield_outside_function(self): |
| 3050 | self._check_error("if 0: yield", "outside function") |
nothing calls this directly
no test coverage detected