class documentation
class _TestBase(unittest.TestCase): (source)
Known subclasses: pytype.pyc.opcodes_test.CommonTest
, pytype.pyc.opcodes_test.Python37Test
, pytype.pyc.opcodes_test.Python38Test
Base class for all opcodes.dis testing.
Method | assert |
Assert that an extended code sequence has the expected disassembly. |
Method | assert |
Assert that the opcodes have the expected line numbers. |
Method | assert |
Assert that the first disassembled opcode has the given name. |
Method | assert |
Assert that a single opcode byte disassembles to the given name. |
Method | dis |
Return the opcodes from disassembling a code sequence. |