Benchmarks: 2to3 failures on the py3 side - Pastebin.com (original) (raw)

  1. ======================================================================
  2. ERROR: test_all_project_files (lib2to3.tests.test_parser.TestParserIdempotency)
  3. ----------------------------------------------------------------------
  4. Traceback (most recent call last):
  5. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_parser.py", line 162, in test_all_project_files
  6. source = source.decode(encoding)
  7. AttributeError: 'str' object has no attribute 'decode'
  8. ======================================================================
  9. ERROR: test_unencodable_diff (lib2to3.tests.test_main.TestMain)
  10. ----------------------------------------------------------------------
  11. Traceback (most recent call last):
  12. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_main.py", line 36, in test_unencodable_diff
  13. ret = self.run_2to3_capture(["-"], input_stream, out_enc, err)
  14. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_main.py", line 25, in run_2to3_capture
  15. return main.main("lib2to3.fixes", args)
  16. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/main.py", line 169, in main
  17. rt.refactor_stdin()
  18. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 396, in refactor_stdin
  19. self.processed_file(str(tree), "", input)
  20. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 513, in processed_file
  21. self.print_output(old_text, new_text, filename, equal)
  22. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/main.py", line 74, in print_output
  23. print(line)
  24. File "/usr/lib/python3.2/codecs.py", line 356, in write
  25. self.stream.write(data)
  26. TypeError: string argument expected, got 'bytes'
  27. ======================================================================
  28. ERROR: test_bare_isCallable (lib2to3.tests.test_fixers.Test_operator)
  29. ----------------------------------------------------------------------
  30. Traceback (most recent call last):
  31. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 4397, in test_bare_isCallable
  32. self.warns_unchanged(s, t)
  33. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 49, in warns_unchanged
  34. self.warns(before, before, message, unchanged=True)
  35. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 43, in warns
  36. tree = self._check(before, after)
  37. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 32, in _check
  38. tree = self.refactor.refactor_string(before, self.filename)
  39. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 381, in refactor_string
  40. self.refactor_tree(tree, name)
  41. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 455, in refactor_tree
  42. new = fixer.transform(node, results)
  43. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 43, in transform
  44. method = self._check_method(node, results)
  45. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 89, in _check_method
  46. method = getattr(self, "_" + results["method"][0].value.encode("ascii"))
  47. TypeError: Can't convert 'bytes' object to str implicitly
  48. ======================================================================
  49. ERROR: test_bare_operator_irepeat (lib2to3.tests.test_fixers.Test_operator)
  50. ----------------------------------------------------------------------
  51. Traceback (most recent call last):
  52. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 4427, in test_bare_operator_irepeat
  53. self.warns_unchanged(s, t)
  54. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 49, in warns_unchanged
  55. self.warns(before, before, message, unchanged=True)
  56. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 43, in warns
  57. tree = self._check(before, after)
  58. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 32, in _check
  59. tree = self.refactor.refactor_string(before, self.filename)
  60. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 381, in refactor_string
  61. self.refactor_tree(tree, name)
  62. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 455, in refactor_tree
  63. new = fixer.transform(node, results)
  64. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 43, in transform
  65. method = self._check_method(node, results)
  66. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 89, in _check_method
  67. method = getattr(self, "_" + results["method"][0].value.encode("ascii"))
  68. TypeError: Can't convert 'bytes' object to str implicitly
  69. ======================================================================
  70. ERROR: test_bare_operator_isMappingType (lib2to3.tests.test_fixers.Test_operator)
  71. ----------------------------------------------------------------------
  72. Traceback (most recent call last):
  73. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 4412, in test_bare_operator_isMappingType
  74. self.warns_unchanged(s, t)
  75. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 49, in warns_unchanged
  76. self.warns(before, before, message, unchanged=True)
  77. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 43, in warns
  78. tree = self._check(before, after)
  79. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 32, in _check
  80. tree = self.refactor.refactor_string(before, self.filename)
  81. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 381, in refactor_string
  82. self.refactor_tree(tree, name)
  83. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 455, in refactor_tree
  84. new = fixer.transform(node, results)
  85. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 43, in transform
  86. method = self._check_method(node, results)
  87. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 89, in _check_method
  88. method = getattr(self, "_" + results["method"][0].value.encode("ascii"))
  89. TypeError: Can't convert 'bytes' object to str implicitly
  90. ======================================================================
  91. ERROR: test_bare_operator_isNumberType (lib2to3.tests.test_fixers.Test_operator)
  92. ----------------------------------------------------------------------
  93. Traceback (most recent call last):
  94. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 4417, in test_bare_operator_isNumberType
  95. self.warns_unchanged(s, t)
  96. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 49, in warns_unchanged
  97. self.warns(before, before, message, unchanged=True)
  98. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 43, in warns
  99. tree = self._check(before, after)
  100. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 32, in _check
  101. tree = self.refactor.refactor_string(before, self.filename)
  102. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 381, in refactor_string
  103. self.refactor_tree(tree, name)
  104. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 455, in refactor_tree
  105. new = fixer.transform(node, results)
  106. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 43, in transform
  107. method = self._check_method(node, results)
  108. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 89, in _check_method
  109. method = getattr(self, "_" + results["method"][0].value.encode("ascii"))
  110. TypeError: Can't convert 'bytes' object to str implicitly
  111. ======================================================================
  112. ERROR: test_bare_operator_isSequenceType (lib2to3.tests.test_fixers.Test_operator)
  113. ----------------------------------------------------------------------
  114. Traceback (most recent call last):
  115. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 4407, in test_bare_operator_isSequenceType
  116. self.warns_unchanged(s, t)
  117. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 49, in warns_unchanged
  118. self.warns(before, before, message, unchanged=True)
  119. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 43, in warns
  120. tree = self._check(before, after)
  121. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 32, in _check
  122. tree = self.refactor.refactor_string(before, self.filename)
  123. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 381, in refactor_string
  124. self.refactor_tree(tree, name)
  125. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 455, in refactor_tree
  126. new = fixer.transform(node, results)
  127. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 43, in transform
  128. method = self._check_method(node, results)
  129. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 89, in _check_method
  130. method = getattr(self, "_" + results["method"][0].value.encode("ascii"))
  131. TypeError: Can't convert 'bytes' object to str implicitly
  132. ======================================================================
  133. ERROR: test_bare_operator_repeat (lib2to3.tests.test_fixers.Test_operator)
  134. ----------------------------------------------------------------------
  135. Traceback (most recent call last):
  136. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 4422, in test_bare_operator_repeat
  137. self.warns_unchanged(s, t)
  138. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 49, in warns_unchanged
  139. self.warns(before, before, message, unchanged=True)
  140. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 43, in warns
  141. tree = self._check(before, after)
  142. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 32, in _check
  143. tree = self.refactor.refactor_string(before, self.filename)
  144. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 381, in refactor_string
  145. self.refactor_tree(tree, name)
  146. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 455, in refactor_tree
  147. new = fixer.transform(node, results)
  148. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 43, in transform
  149. method = self._check_method(node, results)
  150. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 89, in _check_method
  151. method = getattr(self, "_" + results["method"][0].value.encode("ascii"))
  152. TypeError: Can't convert 'bytes' object to str implicitly
  153. ======================================================================
  154. ERROR: test_bare_sequenceIncludes (lib2to3.tests.test_fixers.Test_operator)
  155. ----------------------------------------------------------------------
  156. Traceback (most recent call last):
  157. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 4402, in test_bare_sequenceIncludes
  158. self.warns_unchanged(s, t)
  159. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 49, in warns_unchanged
  160. self.warns(before, before, message, unchanged=True)
  161. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 43, in warns
  162. tree = self._check(before, after)
  163. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 32, in _check
  164. tree = self.refactor.refactor_string(before, self.filename)
  165. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 381, in refactor_string
  166. self.refactor_tree(tree, name)
  167. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 455, in refactor_tree
  168. new = fixer.transform(node, results)
  169. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 43, in transform
  170. method = self._check_method(node, results)
  171. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 89, in _check_method
  172. method = getattr(self, "_" + results["method"][0].value.encode("ascii"))
  173. TypeError: Can't convert 'bytes' object to str implicitly
  174. ======================================================================
  175. ERROR: test_operator_irepeat (lib2to3.tests.test_fixers.Test_operator)
  176. ----------------------------------------------------------------------
  177. Traceback (most recent call last):
  178. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 4384, in test_operator_irepeat
  179. self.check(b, a)
  180. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 37, in check
  181. tree = self._check(before, after)
  182. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 32, in _check
  183. tree = self.refactor.refactor_string(before, self.filename)
  184. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 381, in refactor_string
  185. self.refactor_tree(tree, name)
  186. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 455, in refactor_tree
  187. new = fixer.transform(node, results)
  188. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 43, in transform
  189. method = self._check_method(node, results)
  190. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 89, in _check_method
  191. method = getattr(self, "_" + results["method"][0].value.encode("ascii"))
  192. TypeError: Can't convert 'bytes' object to str implicitly
  193. ======================================================================
  194. ERROR: test_operator_isCallable (lib2to3.tests.test_fixers.Test_operator)
  195. ----------------------------------------------------------------------
  196. Traceback (most recent call last):
  197. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 4338, in test_operator_isCallable
  198. self.check(b, a)
  199. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 37, in check
  200. tree = self._check(before, after)
  201. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 32, in _check
  202. tree = self.refactor.refactor_string(before, self.filename)
  203. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 381, in refactor_string
  204. self.refactor_tree(tree, name)
  205. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 455, in refactor_tree
  206. new = fixer.transform(node, results)
  207. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 43, in transform
  208. method = self._check_method(node, results)
  209. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 89, in _check_method
  210. method = getattr(self, "_" + results["method"][0].value.encode("ascii"))
  211. TypeError: Can't convert 'bytes' object to str implicitly
  212. ======================================================================
  213. ERROR: test_operator_isMappingType (lib2to3.tests.test_fixers.Test_operator)
  214. ----------------------------------------------------------------------
  215. Traceback (most recent call last):
  216. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 4361, in test_operator_isMappingType
  217. self.check(b, a)
  218. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 37, in check
  219. tree = self._check(before, after)
  220. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 32, in _check
  221. tree = self.refactor.refactor_string(before, self.filename)
  222. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 381, in refactor_string
  223. self.refactor_tree(tree, name)
  224. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 455, in refactor_tree
  225. new = fixer.transform(node, results)
  226. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 43, in transform
  227. method = self._check_method(node, results)
  228. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 89, in _check_method
  229. method = getattr(self, "_" + results["method"][0].value.encode("ascii"))
  230. TypeError: Can't convert 'bytes' object to str implicitly
  231. ======================================================================
  232. ERROR: test_operator_isNumberType (lib2to3.tests.test_fixers.Test_operator)
  233. ----------------------------------------------------------------------
  234. Traceback (most recent call last):
  235. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 4366, in test_operator_isNumberType
  236. self.check(b, a)
  237. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 37, in check
  238. tree = self._check(before, after)
  239. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 32, in _check
  240. tree = self.refactor.refactor_string(before, self.filename)
  241. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 381, in refactor_string
  242. self.refactor_tree(tree, name)
  243. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 455, in refactor_tree
  244. new = fixer.transform(node, results)
  245. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 43, in transform
  246. method = self._check_method(node, results)
  247. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 89, in _check_method
  248. method = getattr(self, "_" + results["method"][0].value.encode("ascii"))
  249. TypeError: Can't convert 'bytes' object to str implicitly
  250. ======================================================================
  251. ERROR: test_operator_isSequenceType (lib2to3.tests.test_fixers.Test_operator)
  252. ----------------------------------------------------------------------
  253. Traceback (most recent call last):
  254. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 4356, in test_operator_isSequenceType
  255. self.check(b, a)
  256. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 37, in check
  257. tree = self._check(before, after)
  258. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 32, in _check
  259. tree = self.refactor.refactor_string(before, self.filename)
  260. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 381, in refactor_string
  261. self.refactor_tree(tree, name)
  262. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 455, in refactor_tree
  263. new = fixer.transform(node, results)
  264. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 43, in transform
  265. method = self._check_method(node, results)
  266. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 89, in _check_method
  267. method = getattr(self, "_" + results["method"][0].value.encode("ascii"))
  268. TypeError: Can't convert 'bytes' object to str implicitly
  269. ======================================================================
  270. ERROR: test_operator_repeat (lib2to3.tests.test_fixers.Test_operator)
  271. ----------------------------------------------------------------------
  272. Traceback (most recent call last):
  273. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 4371, in test_operator_repeat
  274. self.check(b, a)
  275. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 37, in check
  276. tree = self._check(before, after)
  277. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 32, in _check
  278. tree = self.refactor.refactor_string(before, self.filename)
  279. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 381, in refactor_string
  280. self.refactor_tree(tree, name)
  281. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 455, in refactor_tree
  282. new = fixer.transform(node, results)
  283. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 43, in transform
  284. method = self._check_method(node, results)
  285. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 89, in _check_method
  286. method = getattr(self, "_" + results["method"][0].value.encode("ascii"))
  287. TypeError: Can't convert 'bytes' object to str implicitly
  288. ======================================================================
  289. ERROR: test_operator_sequenceIncludes (lib2to3.tests.test_fixers.Test_operator)
  290. ----------------------------------------------------------------------
  291. Traceback (most recent call last):
  292. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 4343, in test_operator_sequenceIncludes
  293. self.check(b, a)
  294. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 37, in check
  295. tree = self._check(before, after)
  296. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 32, in _check
  297. tree = self.refactor.refactor_string(before, self.filename)
  298. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 381, in refactor_string
  299. self.refactor_tree(tree, name)
  300. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 455, in refactor_tree
  301. new = fixer.transform(node, results)
  302. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 43, in transform
  303. method = self._check_method(node, results)
  304. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 89, in _check_method
  305. method = getattr(self, "_" + results["method"][0].value.encode("ascii"))
  306. TypeError: Can't convert 'bytes' object to str implicitly
  307. ======================================================================
  308. ERROR: test_all_project_files (lib2to3.tests.test_all_fixers.Test_all)
  309. ----------------------------------------------------------------------
  310. Traceback (most recent call last):
  311. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_all_fixers.py", line 23, in test_all_project_files
  312. self.refactor.refactor_file(filepath)
  313. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 349, in refactor_file
  314. tree = self.refactor_string(input, filename)
  315. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 375, in refactor_string
  316. name, err.__class__.__name__, err)
  317. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 372, in refactor_string
  318. tree = self.driver.parse_string(data)
  319. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/pgen2/driver.py", line 105, in parse_string
  320. return self.parse_tokens(tokens, debug)
  321. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/pgen2/driver.py", line 70, in parse_tokens
  322. if p.addtoken(type, value, (prefix, start)):
  323. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/pgen2/parse.py", line 159, in addtoken
  324. raise ParseError("bad input", type, value, context)
  325. lib2to3.pgen2.parse.ParseError: bad input: type=22, value='=', context=('', (82, 38))
  326. ======================================================================
  327. FAIL: test_bom (lib2to3.tests.test_refactor.TestRefactoringTool)
  328. ----------------------------------------------------------------------
  329. Traceback (most recent call last):
  330. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_refactor.py", line 240, in test_bom
  331. data = self.check_file_refactoring(fn)
  332. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_refactor.py", line 192, in check_file_refactoring
  333. self.assertNotEqual(old_contents, new_contents)
  334. AssertionError: b'\xef\xbb\xbf# coding: utf-8\nprint("BOM BOOM!")\n' == b'\xef\xbb\xbf# coding: utf-8\nprint("BOM BOOM!")\n'
  335. ======================================================================
  336. FAIL: test_crlf_newlines (lib2to3.tests.test_refactor.TestRefactoringTool)
  337. ----------------------------------------------------------------------
  338. Traceback (most recent call last):
  339. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_refactor.py", line 249, in test_crlf_newlines
  340. self.check_file_refactoring(fn, fixes)
  341. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_refactor.py", line 192, in check_file_refactoring
  342. self.assertNotEqual(old_contents, new_contents)
  343. AssertionError: b'print("hi")\n\nprint("Like bad Windows newlines?")\n' == b'print("hi")\n\nprint("Like bad Windows newlines?")\n'
  344. ======================================================================
  345. FAIL: test_file_encoding (lib2to3.tests.test_refactor.TestRefactoringTool)
  346. ----------------------------------------------------------------------
  347. Traceback (most recent call last):
  348. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_refactor.py", line 236, in test_file_encoding
  349. self.check_file_refactoring(fn)
  350. File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_refactor.py", line 192, in check_file_refactoring
  351. self.assertNotEqual(old_contents, new_contents)
  352. AssertionError: b"#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nprint('\xc3\x9f\xc3\xa0\xc3\xa1\xc3\xa2\xc3\xa3\xc3\xa4\xc3\xa5\xc3\xa6\xc3\xa7\xc3\xa8\xc3\xa9\xc3\xaa\xc3\xab\xc3\xac\xc3\xad\xc3\xae\xc3\xaf\xc3\xb0\xc3\xb1\xc3\xb2\xc3\xb3\xc3\xb4\xc3\xb5\xc3\xb6\xc3\xb8\xc3\xb9\xc3\xba\xc3\xbb\xc3\xbc\xc3\xbd\xc3\xbe\xc3\xbf\xc3\x80\xc3\x81\xc3\x82\xc3\x83\xc3\x84\xc3\x85\xc3\x86\xc3\x87\xc3\x88\xc3\x89\xc3\x8a\xc3\x8b\xc3\x8c\xc3\x8d\xc3\x8e\xc3\x8f\xc3\x90\xc3\x91\xc3\x92\xc3\x93\xc3\x94\xc3\x95\xc3\x96\xc3\x98\xc3\x99\xc3\x9a\xc3\x9b\xc3\x9c\xc3\x9d\xc3\x9e')\n\ndef f(x):\n print('%s\\t-> \xce\xb1(%2i):%s \xce\xb2(%s)')\n" == b"#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nprint('\xc3\x9f\xc3\xa0\xc3\xa1\xc3\xa2\xc3\xa3\xc3\xa4\xc3\xa5\xc3\xa6\xc3\xa7\xc3\xa8\xc3\xa9\xc3\xaa\xc3\xab\xc3\xac\xc3\xad\xc3\xae\xc3\xaf\xc3\xb0\xc3\xb1\xc3\xb2\xc3\xb3\xc3\xb4\xc3\xb5\xc3\xb6\xc3\xb8\xc3\xb9\xc3\xba\xc3\xbb\xc3\xbc\xc3\xbd\xc3\xbe\xc3\xbf\xc3\x80\xc3\x81\xc3\x82\xc3\x83\xc3\x84\xc3\x85\xc3\x86\xc3\x87\xc3\x88\xc3\x89\xc3\x8a\xc3\x8b\xc3\x8c\xc3\x8d\xc3\x8e\xc3\x8f\xc3\x90\xc3\x91\xc3\x92\xc3\x93\xc3\x94\xc3\x95\xc3\x96\xc3\x98\xc3\x99\xc3\x9a\xc3\x9b\xc3\x9c\xc3\x9d\xc3\x9e')\n\ndef f(x):\n print('%s\\t-> \xce\xb1(%2i):%s \xce\xb2(%s)')\n"
  353. ----------------------------------------------------------------------
  354. Ran 572 tests in 10.023s
  355. FAILED (failures=3, errors=17)