Guest User

Untitled

a guest
Aug 4th, 2017
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.80 KB | None | 0 0
  1. F pypy/module/_socket/test/test_ztranslation.py::test_checkmodule
  2. def test_checkmodule():
  3. > checkmodule('_socket')
  4.  
  5. module/_socket/test/test_ztranslation.py:5:
  6. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7. objspace/fake/checkmodule.py:34: in checkmodule
  8. **{'translation.list_comprehension_operations': True})
  9. objspace/fake/objspace.py:403: in translates
  10. ann.complete()
  11. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  12.  
  13. self = <rpython.annotator.annrpython.RPythonAnnotator object at 0x7f95d3ed7d10>
  14.  
  15. def complete(self):
  16. """Process pending blocks until none is left."""
  17. while True:
  18. self.complete_pending_blocks()
  19. self.policy.no_more_blocks_to_annotate(self)
  20. if not self.pendingblocks:
  21. break # finished
  22. # make sure that the return variables of all graphs is annotated
  23. if self.added_blocks is not None:
  24. newgraphs = [self.annotated[block] for block in self.added_blocks]
  25. newgraphs = dict.fromkeys(newgraphs)
  26. got_blocked_blocks = False in newgraphs
  27. else:
  28. newgraphs = self.translator.graphs #all of them
  29. got_blocked_blocks = False in self.annotated.values()
  30. if self.failed_blocks:
  31. text = ('Annotation failed, %s errors were recorded:' %
  32. len(self.errors))
  33. text += '\n-----'.join(str(e) for e in self.errors)
  34. raise annmodel.AnnotatorError(text)
  35.  
  36. if got_blocked_blocks:
  37. for graph in self.blocked_graphs.values():
  38. self.blocked_graphs[graph] = True
  39.  
  40. blocked_blocks = [block for block, done in self.annotated.items()
  41. if done is False]
  42. assert len(blocked_blocks) == len(self.blocked_blocks)
  43.  
  44. text = format_blocked_annotation_error(self, self.blocked_blocks)
  45. #raise SystemExit()
  46. > raise annmodel.AnnotatorError(text)
  47. E AnnotatorError:
  48. E
  49. E Blocked block -- operation cannot succeed
  50. E
  51. E v64 = getattr(w_ancillary_0, ('getitems'))
  52. E
  53. E In <FunctionGraph of (pypy.module._socket.interp_socket:553)W_Socket.sendmsg_w at 0x7f95d306a290>:
  54. E Happened at file /extra1/home/buildslave/buildslave/own-linux-x86-64/build/pypy/module/_socket/interp_socket.py line 618
  55. E
  56. E ==> for i in w_ancillary.getitems():
  57. E
  58. E Known variable annotations:
  59. E w_ancillary_0 = SomeInstance(can_be_None=False, classdef=pypy.interpreter.baseobjspace.W_Root)
  60. E
  61. E Blocked block -- operation cannot succeed
  62. E
  63. E v66 = getattr(v65, ('descr_tobytes'))
  64. E
  65. E In <FunctionGraph of (pypy.module._socket.interp_socket:553)W_Socket.sendmsg_w at 0x7f95d306a290>:
  66. E Happened at file /extra1/home/buildslave/buildslave/own-linux-x86-64/build/pypy/module/_socket/interp_socket.py line 657
  67. E
  68. E ==> cont = space.bytes_w(space.getitem(i, space.newint(2)).descr_tobytes(space))
  69. E
  70. E Known variable annotations:
  71. E v65 = SomeInstance(can_be_None=False, classdef=pypy.interpreter.baseobjspace.W_Root)
  72. E
  73. E Blocked block -- operation cannot succeed
  74. E
  75. E v67 = getattr(i_0, ('descr_tobytes'))
  76. E
  77. E In <FunctionGraph of (pypy.module._socket.interp_socket:553)W_Socket.sendmsg_w at 0x7f95d306a290>:
  78. E Happened at file /extra1/home/buildslave/buildslave/own-linux-x86-64/build/pypy/module/_socket/interp_socket.py line 606
  79. E
  80. E ==> data.append(space.bytes_w(i.descr_tobytes(space)))
  81. E
  82. E Known variable annotations:
  83. E i_0 = SomeInstance(can_be_None=False, classdef=pypy.interpreter.baseobjspace.W_Root)
  84. E
  85. E Blocked block -- operation cannot succeed
  86. E
  87. E v68 = getattr(i_1, ('descr_tobytes'))
  88. E
  89. E In <FunctionGraph of (pypy.module._socket.interp_socket:553)W_Socket.sendmsg_w at 0x7f95d306a290>:
  90. E Happened at file /extra1/home/buildslave/buildslave/own-linux-x86-64/build/pypy/module/_socket/interp_socket.py line 603
  91. E
  92. E ==> data.append(space.bytes_w(i.descr_tobytes(space)))
  93. E
  94. E Known variable annotations:
  95. E i_1 = SomeInstance(can_be_None=False, classdef=pypy.interpreter.baseobjspace.W_Root)
  96. E
  97. E Blocked block -- operation cannot succeed
  98. E
  99. E v69 = getattr(w_data_0, ('getitems'))
  100. E
  101. E In <FunctionGraph of (pypy.module._socket.interp_socket:553)W_Socket.sendmsg_w at 0x7f95d306a290>:
  102. E Happened at file /extra1/home/buildslave/buildslave/own-linux-x86-64/build/pypy/module/_socket/interp_socket.py line 582
  103. E
  104. E ==> for i in w_data.getitems():
  105. E
  106. E Known variable annotations:
  107. E w_data_0 = SomeInstance(can_be_None=False, classdef=pypy.interpreter.baseobjspace.W_Root)
  108.  
  109. ../rpython/annotator/annrpython.py:229: AnnotatorError
  110. ---------- Captured stdout call ----------
  111.  
  112. ------ seeing typedef '_socket.socket' ------
  113.  
  114. ------ seeing typedef '_socket.socket' ------
  115.  
  116. ------ seeing typedef '_socket.socket' ------
  117. (somefailed=True in module/_socket/test)
  118. . pypy/module/_warnings/test/test_warnings.py::AppTestWarnings::()::test_defaults
Advertisement
Add Comment
Please, Sign In to add comment