Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- F 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:34: in checkmodule
- **{'translation.list_comprehension_operations': True})
- objspace/fake/objspace.py:403: in translates
- ann.complete()
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <rpython.annotator.annrpython.RPythonAnnotator object at 0x7f95d3ed7d10>
- 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 self.pendingblocks:
- 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 v64 = getattr(w_ancillary_0, ('getitems'))
- E
- E In <FunctionGraph of (pypy.module._socket.interp_socket:553)W_Socket.sendmsg_w at 0x7f95d306a290>:
- E Happened at file /extra1/home/buildslave/buildslave/own-linux-x86-64/build/pypy/module/_socket/interp_socket.py line 618
- E
- E ==> for i in w_ancillary.getitems():
- E
- E Known variable annotations:
- E w_ancillary_0 = SomeInstance(can_be_None=False, classdef=pypy.interpreter.baseobjspace.W_Root)
- E
- E Blocked block -- operation cannot succeed
- E
- E v66 = getattr(v65, ('descr_tobytes'))
- E
- E In <FunctionGraph of (pypy.module._socket.interp_socket:553)W_Socket.sendmsg_w at 0x7f95d306a290>:
- E Happened at file /extra1/home/buildslave/buildslave/own-linux-x86-64/build/pypy/module/_socket/interp_socket.py line 657
- E
- E ==> cont = space.bytes_w(space.getitem(i, space.newint(2)).descr_tobytes(space))
- E
- E Known variable annotations:
- E v65 = SomeInstance(can_be_None=False, classdef=pypy.interpreter.baseobjspace.W_Root)
- E
- E Blocked block -- operation cannot succeed
- E
- E v67 = getattr(i_0, ('descr_tobytes'))
- E
- E In <FunctionGraph of (pypy.module._socket.interp_socket:553)W_Socket.sendmsg_w at 0x7f95d306a290>:
- E Happened at file /extra1/home/buildslave/buildslave/own-linux-x86-64/build/pypy/module/_socket/interp_socket.py line 606
- E
- E ==> data.append(space.bytes_w(i.descr_tobytes(space)))
- E
- E Known variable annotations:
- E i_0 = SomeInstance(can_be_None=False, classdef=pypy.interpreter.baseobjspace.W_Root)
- E
- E Blocked block -- operation cannot succeed
- E
- E v68 = getattr(i_1, ('descr_tobytes'))
- E
- E In <FunctionGraph of (pypy.module._socket.interp_socket:553)W_Socket.sendmsg_w at 0x7f95d306a290>:
- E Happened at file /extra1/home/buildslave/buildslave/own-linux-x86-64/build/pypy/module/_socket/interp_socket.py line 603
- E
- E ==> data.append(space.bytes_w(i.descr_tobytes(space)))
- E
- E Known variable annotations:
- E i_1 = SomeInstance(can_be_None=False, classdef=pypy.interpreter.baseobjspace.W_Root)
- E
- E Blocked block -- operation cannot succeed
- E
- E v69 = getattr(w_data_0, ('getitems'))
- E
- E In <FunctionGraph of (pypy.module._socket.interp_socket:553)W_Socket.sendmsg_w at 0x7f95d306a290>:
- E Happened at file /extra1/home/buildslave/buildslave/own-linux-x86-64/build/pypy/module/_socket/interp_socket.py line 582
- E
- E ==> for i in w_data.getitems():
- E
- E Known variable annotations:
- E w_data_0 = SomeInstance(can_be_None=False, classdef=pypy.interpreter.baseobjspace.W_Root)
- ../rpython/annotator/annrpython.py:229: AnnotatorError
- ---------- Captured stdout call ----------
- ------ seeing typedef '_socket.socket' ------
- ------ seeing typedef '_socket.socket' ------
- ------ seeing typedef '_socket.socket' ------
- (somefailed=True in module/_socket/test)
- . pypy/module/_warnings/test/test_warnings.py::AppTestWarnings::()::test_defaults
Advertisement
Add Comment
Please, Sign In to add comment