(self)
| 36 | check_syntax_error(self, prog_text, lineno=2, offset=5) |
| 37 | |
| 38 | def test_name_after_assign(self): |
| 39 | prog_text = """\ |
| 40 | def fn(): |
| 41 | name_assign = 1 |
| 42 | global name_assign |
| 43 | """ |
| 44 | check_syntax_error(self, prog_text, lineno=3, offset=5) |
| 45 | |
| 46 | def test_name_after_use(self): |
| 47 | prog_text = """\ |
nothing calls this directly
no test coverage detected