(body, expected_methods)
| 400 | # expressions do not have the TYPE_FUNCTION type. |
| 401 | |
| 402 | def check_body(body, expected_methods): |
| 403 | indented = textwrap.indent(body, ' ' * 4) |
| 404 | top = symtable.symtable(f"class A:\n{indented}", "?", "exec") |
| 405 | this = find_block(top, "A") |
| 406 | with self.assertWarnsRegex(DeprecationWarning, deprecation_mess): |
| 407 | self.assertEqual(this.get_methods(), expected_methods) |
| 408 | |
| 409 | # statements with 'genexpr' inside it |
| 410 | GENEXPRS = ( |
nothing calls this directly
no test coverage detected