(body, expected_methods)
| 412 | # expressions do not have the TYPE_FUNCTION type. |
| 413 | |
| 414 | def check_body(body, expected_methods): |
| 415 | indented = textwrap.indent(body, ' ' * 4) |
| 416 | top = symtable.symtable(f"class A:\n{indented}", "?", "exec") |
| 417 | this = find_block(top, "A") |
| 418 | with self.assertWarnsRegex(DeprecationWarning, deprecation_mess): |
| 419 | self.assertEqual(this.get_methods(), expected_methods) |
| 420 | |
| 421 | # statements with 'genexpr' inside it |
| 422 | GENEXPRS = ( |
nothing calls this directly
no test coverage detected