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

Method test_bytecode_co_positions

Lib/test/test_dis.py:2378–2381  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2376
2377 @requires_debug_ranges()
2378 def test_bytecode_co_positions(self):
2379 bytecode = dis.Bytecode("a=1")
2380 for instr, positions in zip(bytecode, bytecode.codeobj.co_positions()):
2381 assert instr.positions == positions
2382
2383class TestBytecodeTestCase(BytecodeTestCase):
2384 def test_assert_not_in_with_op_not_in_bytecode(self):

Callers

nothing calls this directly

Calls 1

co_positionsMethod · 0.80

Tested by

no test coverage detected