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

pypy/module/_socket/test/test_ztranslation.py::test_checkmodule

def test_checkmodule():
>       checkmodule('_socket')

module/_socket/test/test_ztranslation.py:5: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
objspace/fake/checkmodule.py:67: in checkmodule
    c_compile=c_compile, extra_func=extra_func, **opts)
objspace/fake/objspace.py:485: in translates
    ann.complete()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <rpython.annotator.annrpython.RPythonAnnotator object at 0x0000000040b8f248>

    def complete(self):
        """Process pending blocks until none is left."""
        while True:
            self.complete_pending_blocks()
            self.policy.no_more_blocks_to_annotate(self)
            if not any(self.genpendingblocks):
                break   # finished
        # make sure that the return variables of all graphs is annotated
        if self.added_blocks is not None:
            newgraphs = [self.annotated[block] for block in self.added_blocks]
            newgraphs = dict.fromkeys(newgraphs)
            got_blocked_blocks = False in newgraphs
        else:
            newgraphs = self.translator.graphs  #all of them
            got_blocked_blocks = False in self.annotated.values()
        if self.failed_blocks:
            text = ('Annotation failed, %s errors were recorded:' %
                    len(self.errors))
            text += '\n-----'.join(str(e) for e in self.errors)
            raise annmodel.AnnotatorError(text)
    
        if got_blocked_blocks:
            for graph in self.blocked_graphs.values():
                self.blocked_graphs[graph] = True
    
            blocked_blocks = [block for block, done in self.annotated.items()
                                    if done is False]
            assert len(blocked_blocks) == len(self.blocked_blocks)
    
            text = format_blocked_annotation_error(self, self.blocked_blocks)
            #raise SystemExit()
>           raise annmodel.AnnotatorError(text)
E           AnnotatorError: 
E           
E           Blocked block -- operation cannot succeed
E           
E               v77 = getattr(w_mv_0, ('w_get_obj'))
E           
E           In <FunctionGraph of (pypy.interpreter.buffer:559)DunderReleaseView.releasebuffer at 0x2aa994e8>:
E           Happened at file /buildbot/slave/own-linux-aarch64/build/pypy/interpreter/buffer.py line 572
E           
E           ==>             owns_match = w_mv.w_get_obj(space) is w_exporter
E           
E           Known variable annotations:
E            w_mv_0 = SomeInstance(can_be_None=False, classdef=pypy.interpreter.baseobjspace.W_Root)

../rpython/annotator/annrpython.py:257: AnnotatorError
---------- Captured stdout call ----------

------ seeing typedef '_socket.socket' ------

------ seeing typedef '_socket.socket' ------

------ seeing typedef '_socket.socket' ------
 (somefailed=True in module/_socket/test)
builder: own-linux-aarch64 build #2848+
test: pypy/module/_socket/test/test_ztranslation.py::test_checkmodule