Home - Summaries: (main) : (py3.11) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

pypy/interpreter/astcompiler/test/test_compiler.py::TestCompiler::()::test_augassign_attribute_position_multiline::[0]

self = <pypy.interpreter.astcompiler.test.test_compiler.TestCompiler instance at 0x7efffa0def00>
source = "            def faug():        # line 1\n                (              # line 2\n                    o.         # li...   store_idx = opcodes.index('STORE_ATTR')\n            result = (positions[load_idx], positions[store_idx])\n        "
evalexpr = 'result', expected = ((4, 4, 8, 9), (4, 4, 8, 9))

    def simple_test(self, source, evalexpr, expected):
>       w_g = self.run(source)

interpreter/astcompiler/test/test_compiler.py:91: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
interpreter/astcompiler/test/test_compiler.py:55: in run
    code.exec_code(space, w_dict, w_dict)
interpreter/eval.py:33: in exec_code
    return frame.run()
interpreter/pyframe.py:257: in run
    return self.execute_frame()
interpreter/pyframe.py:350: in execute_frame
    executioncontext)
interpreter/pyopcode.py:68: in dispatch
    next_instr = self.handle_bytecode(co_code, next_instr, ec)
interpreter/pyopcode.py:91: in handle_bytecode
    next_instr = self.handle_operation_error(ec, operr)
interpreter/pyopcode.py:74: in handle_bytecode
    next_instr = self.dispatch_bytecode(co_code, next_instr, ec)
interpreter/pyopcode.py:307: in dispatch_bytecode
    self.CALL_FUNCTION(oparg, next_instr)
interpreter/pyopcode.py:1462: in CALL_FUNCTION
    w_result = self.space.call_valuestack(w_function, nargs, self, dropvalues=nargs+1)
interpreter/baseobjspace.py:1264: in call_valuestack
    nargs, frame, methodcall=methodcall, dropvalues=dropvalues)
interpreter/function.py:188: in funccall_valuestack
    return self._flat_pycall(code, nargs, frame, dropvalues)
interpreter/function.py:215: in _flat_pycall
    return new_frame.run(self.name, self.qualname)
interpreter/pyframe.py:257: in run
    return self.execute_frame()
interpreter/pyframe.py:350: in execute_frame
    executioncontext)
interpreter/pyopcode.py:68: in dispatch
    next_instr = self.handle_bytecode(co_code, next_instr, ec)
interpreter/pyopcode.py:91: in handle_bytecode
    next_instr = self.handle_operation_error(ec, operr)
interpreter/pyopcode.py:74: in handle_bytecode
    next_instr = self.dispatch_bytecode(co_code, next_instr, ec)
interpreter/pyopcode.py:247: in dispatch_bytecode
    next_instr = self.FOR_ITER(oparg, next_instr)
interpreter/pyopcode.py:1369: in FOR_ITER
    w_nextitem = self.space.next(w_iterator)
interpreter/typedef.py:266: in call_shortcut
    return getattr(self, shortcut_name)(space, *args_w)
<1120-codegen /build_dir/own-linux-x86-64/build/rpython/tool/sourcetools.py:200>:2: in shortcut___next__
    w_res = func(self)
interpreter/generator.py:334: in descr_next
    return self.send_ex(self.space.w_None)
interpreter/generator.py:67: in send_ex
    return self._send_ex(w_arg_or_err)
interpreter/generator.py:90: in _send_ex
    w_result = self._invoke_execute_frame(w_arg_or_err)
interpreter/generator.py:131: in _invoke_execute_frame
    w_result = frame.execute_frame(w_arg_or_err)
interpreter/pyframe.py:350: in execute_frame
    executioncontext)
interpreter/pyopcode.py:68: in dispatch
    next_instr = self.handle_bytecode(co_code, next_instr, ec)
interpreter/pyopcode.py:91: in handle_bytecode
    next_instr = self.handle_operation_error(ec, operr)
interpreter/pyopcode.py:74: in handle_bytecode
    next_instr = self.dispatch_bytecode(co_code, next_instr, ec)
interpreter/pyopcode.py:399: in dispatch_bytecode
    self.LOAD_GLOBAL(oparg, next_instr)
interpreter/pyopcode.py:1059: in LOAD_GLOBAL
    LOAD_GLOBAL_cached(self, nameindex, next_instr)
objspace/std/celldict.py:281: in LOAD_GLOBAL_cached
    w_value = _LOAD_GLOBAL_cached(self, nameindex, next_instr)
objspace/std/celldict.py:322: in _LOAD_GLOBAL_cached
    return _load_global_fallback(self, varname)
objspace/std/celldict.py:326: in _load_global_fallback
    return self._load_global(varname)
interpreter/pyopcode.py:1046: in _load_global
    self._load_global_failed(w_varname)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pypy.objspace.std.frame.StdObjSpaceFrame executing <code object _get_instruct... "/build_dir/own-linux-x86-64/build/lib-python/3/dis.py", line 435> at line 483
w_varname = W_UnicodeObject('LOAD_SUPER_ATTR')

    @dont_inline
    def _load_global_failed(self, w_varname):
        # CPython Issue #17032: The "global" in the "NameError: global
        # name 'x' is not defined" error message has been removed.
        raise oefmt_name_error(self.space, w_varname,
>                   "name %R is not defined")
E       OpErrFmtWithNameError: [<W_TypeObject 'NameError' at 0x7efffdecc290>: name 'LOAD_SUPER_ATTR' is not defined]

interpreter/pyopcode.py:1054: OpErrFmtWithNameError
builder: own-linux-x86-64 build #10877+
test: pypy/interpreter/astcompiler/test/test_compiler.py::TestCompiler::()::test_augassign_attribute_position_multiline::[0]