Example #1
0
def test_load_dump():
    w_expr, = read_string(compiled_source)
    w_func0 = load_bytecode_function(w_expr, None)
    w_expr0 = dump_bytecode_function(w_func0)
    assert w_expr.to_string() == w_expr0.to_string()
Example #2
0
def test_load_dump():
    w_expr, = read_string(compiled_source)
    w_func0 = load_bytecode_function(w_expr, None)
    w_expr0 = dump_bytecode_function(w_func0)
    assert w_expr.to_string() == w_expr0.to_string()
Example #3
0
 def call(self, args_w):
     assert len(args_w) == 1
     w_arg, = args_w
     assert isinstance(w_arg, W_BytecodeClosure)
     assert not w_arg.upvals_w
     return dump_bytecode_function(w_arg.w_func)
Example #4
0
 def call(self, args_w):
     assert len(args_w) == 1
     w_arg, = args_w
     assert isinstance(w_arg, W_BytecodeClosure)
     assert not w_arg.upvals_w
     return dump_bytecode_function(w_arg.w_func)