MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_bytes

Method test_bytes

Lib/test/test_symtable.py:493–500  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

491
492 @unittest.expectedFailure # TODO: RUSTPYTHON
493 def test_bytes(self):
494 top = symtable.symtable(TEST_CODE.encode('utf8'), "?", "exec")
495 self.assertIsNotNone(find_block(top, "Mine"))
496
497 code = b'# -*- coding: iso8859-15 -*-\nclass \xb4: pass\n'
498
499 top = symtable.symtable(code, "?", "exec")
500 self.assertIsNotNone(find_block(top, "\u017d"))
501
502 def test_symtable_repr(self):
503 self.assertEqual(str(self.top), "<SymbolTable for module ?>")

Callers

nothing calls this directly

Calls 3

find_blockFunction · 0.85
assertIsNotNoneMethod · 0.80
encodeMethod · 0.45

Tested by

no test coverage detected