module documentation
Tests for vm.py. To create test cases, you can disassemble source code with the help of the dis module. For example, in Python 3.7, this snippet: import dis import opcode def f(): return None bytecode = dis.Bytecode(f) for x in bytecode.codeobj.co_code: print(f'{x} ({opcode.opname[x]})') prints: 100 (LOAD_CONST) 0 (<0>) 83 (RETURN_VALUE) 0 (<0>)
Class |
|
Tests for recording annotations. |
Class |
|
Tests for opcode tracing in the VM. |
Class |
|
Special VM that remembers which instructions it executed. |
Class |
|
Base for VM tests with a tracer vm. |
Class |
|
Base for VM tests. |