(self)
| 477 | symbols = symtable.symtable("def f(x): return x", "?", "exec") |
| 478 | |
| 479 | def test_bytes(self): |
| 480 | top = symtable.symtable(TEST_CODE.encode('utf8'), "?", "exec") |
| 481 | self.assertIsNotNone(find_block(top, "Mine")) |
| 482 | |
| 483 | code = b'# -*- coding: iso8859-15 -*-\nclass \xb4: pass\n' |
| 484 | |
| 485 | top = symtable.symtable(code, "?", "exec") |
| 486 | self.assertIsNotNone(find_block(top, "\u017d")) |
| 487 | |
| 488 | def test_symtable_repr(self): |
| 489 | self.assertEqual(str(self.top), "<SymbolTable for module ?>") |
nothing calls this directly
no test coverage detected