- ======================================================================
- ERROR: test_all_project_files (lib2to3.tests.test_parser.TestParserIdempotency)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_parser.py", line 162, in test_all_project_files
- source = source.decode(encoding)
- AttributeError: 'str' object has no attribute 'decode'
- ======================================================================
- ERROR: test_unencodable_diff (lib2to3.tests.test_main.TestMain)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_main.py", line 36, in test_unencodable_diff
- ret = self.run_2to3_capture(["-"], input_stream, out_enc, err)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_main.py", line 25, in run_2to3_capture
- return main.main("lib2to3.fixes", args)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/main.py", line 169, in main
- rt.refactor_stdin()
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 396, in refactor_stdin
- self.processed_file(str(tree), "", input)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 513, in processed_file
- self.print_output(old_text, new_text, filename, equal)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/main.py", line 74, in print_output
- print(line)
- File "/usr/lib/python3.2/codecs.py", line 356, in write
- self.stream.write(data)
- TypeError: string argument expected, got 'bytes'
- ======================================================================
- ERROR: test_bare_isCallable (lib2to3.tests.test_fixers.Test_operator)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 4397, in test_bare_isCallable
- self.warns_unchanged(s, t)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 49, in warns_unchanged
- self.warns(before, before, message, unchanged=True)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 43, in warns
- tree = self._check(before, after)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 32, in _check
- tree = self.refactor.refactor_string(before, self.filename)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 381, in refactor_string
- self.refactor_tree(tree, name)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 455, in refactor_tree
- new = fixer.transform(node, results)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 43, in transform
- method = self._check_method(node, results)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 89, in _check_method
- method = getattr(self, "_" + results["method"][0].value.encode("ascii"))
- TypeError: Can't convert 'bytes' object to str implicitly
- ======================================================================
- ERROR: test_bare_operator_irepeat (lib2to3.tests.test_fixers.Test_operator)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 4427, in test_bare_operator_irepeat
- self.warns_unchanged(s, t)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 49, in warns_unchanged
- self.warns(before, before, message, unchanged=True)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 43, in warns
- tree = self._check(before, after)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 32, in _check
- tree = self.refactor.refactor_string(before, self.filename)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 381, in refactor_string
- self.refactor_tree(tree, name)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 455, in refactor_tree
- new = fixer.transform(node, results)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 43, in transform
- method = self._check_method(node, results)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 89, in _check_method
- method = getattr(self, "_" + results["method"][0].value.encode("ascii"))
- TypeError: Can't convert 'bytes' object to str implicitly
- ======================================================================
- ERROR: test_bare_operator_isMappingType (lib2to3.tests.test_fixers.Test_operator)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 4412, in test_bare_operator_isMappingType
- self.warns_unchanged(s, t)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 49, in warns_unchanged
- self.warns(before, before, message, unchanged=True)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 43, in warns
- tree = self._check(before, after)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 32, in _check
- tree = self.refactor.refactor_string(before, self.filename)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 381, in refactor_string
- self.refactor_tree(tree, name)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 455, in refactor_tree
- new = fixer.transform(node, results)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 43, in transform
- method = self._check_method(node, results)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 89, in _check_method
- method = getattr(self, "_" + results["method"][0].value.encode("ascii"))
- TypeError: Can't convert 'bytes' object to str implicitly
- ======================================================================
- ERROR: test_bare_operator_isNumberType (lib2to3.tests.test_fixers.Test_operator)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 4417, in test_bare_operator_isNumberType
- self.warns_unchanged(s, t)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 49, in warns_unchanged
- self.warns(before, before, message, unchanged=True)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 43, in warns
- tree = self._check(before, after)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 32, in _check
- tree = self.refactor.refactor_string(before, self.filename)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 381, in refactor_string
- self.refactor_tree(tree, name)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 455, in refactor_tree
- new = fixer.transform(node, results)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 43, in transform
- method = self._check_method(node, results)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 89, in _check_method
- method = getattr(self, "_" + results["method"][0].value.encode("ascii"))
- TypeError: Can't convert 'bytes' object to str implicitly
- ======================================================================
- ERROR: test_bare_operator_isSequenceType (lib2to3.tests.test_fixers.Test_operator)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 4407, in test_bare_operator_isSequenceType
- self.warns_unchanged(s, t)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 49, in warns_unchanged
- self.warns(before, before, message, unchanged=True)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 43, in warns
- tree = self._check(before, after)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 32, in _check
- tree = self.refactor.refactor_string(before, self.filename)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 381, in refactor_string
- self.refactor_tree(tree, name)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 455, in refactor_tree
- new = fixer.transform(node, results)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 43, in transform
- method = self._check_method(node, results)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 89, in _check_method
- method = getattr(self, "_" + results["method"][0].value.encode("ascii"))
- TypeError: Can't convert 'bytes' object to str implicitly
- ======================================================================
- ERROR: test_bare_operator_repeat (lib2to3.tests.test_fixers.Test_operator)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 4422, in test_bare_operator_repeat
- self.warns_unchanged(s, t)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 49, in warns_unchanged
- self.warns(before, before, message, unchanged=True)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 43, in warns
- tree = self._check(before, after)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 32, in _check
- tree = self.refactor.refactor_string(before, self.filename)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 381, in refactor_string
- self.refactor_tree(tree, name)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 455, in refactor_tree
- new = fixer.transform(node, results)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 43, in transform
- method = self._check_method(node, results)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 89, in _check_method
- method = getattr(self, "_" + results["method"][0].value.encode("ascii"))
- TypeError: Can't convert 'bytes' object to str implicitly
- ======================================================================
- ERROR: test_bare_sequenceIncludes (lib2to3.tests.test_fixers.Test_operator)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 4402, in test_bare_sequenceIncludes
- self.warns_unchanged(s, t)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 49, in warns_unchanged
- self.warns(before, before, message, unchanged=True)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 43, in warns
- tree = self._check(before, after)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 32, in _check
- tree = self.refactor.refactor_string(before, self.filename)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 381, in refactor_string
- self.refactor_tree(tree, name)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 455, in refactor_tree
- new = fixer.transform(node, results)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 43, in transform
- method = self._check_method(node, results)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 89, in _check_method
- method = getattr(self, "_" + results["method"][0].value.encode("ascii"))
- TypeError: Can't convert 'bytes' object to str implicitly
- ======================================================================
- ERROR: test_operator_irepeat (lib2to3.tests.test_fixers.Test_operator)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 4384, in test_operator_irepeat
- self.check(b, a)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 37, in check
- tree = self._check(before, after)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 32, in _check
- tree = self.refactor.refactor_string(before, self.filename)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 381, in refactor_string
- self.refactor_tree(tree, name)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 455, in refactor_tree
- new = fixer.transform(node, results)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 43, in transform
- method = self._check_method(node, results)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 89, in _check_method
- method = getattr(self, "_" + results["method"][0].value.encode("ascii"))
- TypeError: Can't convert 'bytes' object to str implicitly
- ======================================================================
- ERROR: test_operator_isCallable (lib2to3.tests.test_fixers.Test_operator)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 4338, in test_operator_isCallable
- self.check(b, a)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 37, in check
- tree = self._check(before, after)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 32, in _check
- tree = self.refactor.refactor_string(before, self.filename)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 381, in refactor_string
- self.refactor_tree(tree, name)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 455, in refactor_tree
- new = fixer.transform(node, results)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 43, in transform
- method = self._check_method(node, results)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 89, in _check_method
- method = getattr(self, "_" + results["method"][0].value.encode("ascii"))
- TypeError: Can't convert 'bytes' object to str implicitly
- ======================================================================
- ERROR: test_operator_isMappingType (lib2to3.tests.test_fixers.Test_operator)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 4361, in test_operator_isMappingType
- self.check(b, a)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 37, in check
- tree = self._check(before, after)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 32, in _check
- tree = self.refactor.refactor_string(before, self.filename)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 381, in refactor_string
- self.refactor_tree(tree, name)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 455, in refactor_tree
- new = fixer.transform(node, results)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 43, in transform
- method = self._check_method(node, results)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 89, in _check_method
- method = getattr(self, "_" + results["method"][0].value.encode("ascii"))
- TypeError: Can't convert 'bytes' object to str implicitly
- ======================================================================
- ERROR: test_operator_isNumberType (lib2to3.tests.test_fixers.Test_operator)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 4366, in test_operator_isNumberType
- self.check(b, a)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 37, in check
- tree = self._check(before, after)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 32, in _check
- tree = self.refactor.refactor_string(before, self.filename)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 381, in refactor_string
- self.refactor_tree(tree, name)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 455, in refactor_tree
- new = fixer.transform(node, results)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 43, in transform
- method = self._check_method(node, results)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 89, in _check_method
- method = getattr(self, "_" + results["method"][0].value.encode("ascii"))
- TypeError: Can't convert 'bytes' object to str implicitly
- ======================================================================
- ERROR: test_operator_isSequenceType (lib2to3.tests.test_fixers.Test_operator)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 4356, in test_operator_isSequenceType
- self.check(b, a)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 37, in check
- tree = self._check(before, after)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 32, in _check
- tree = self.refactor.refactor_string(before, self.filename)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 381, in refactor_string
- self.refactor_tree(tree, name)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 455, in refactor_tree
- new = fixer.transform(node, results)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 43, in transform
- method = self._check_method(node, results)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 89, in _check_method
- method = getattr(self, "_" + results["method"][0].value.encode("ascii"))
- TypeError: Can't convert 'bytes' object to str implicitly
- ======================================================================
- ERROR: test_operator_repeat (lib2to3.tests.test_fixers.Test_operator)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 4371, in test_operator_repeat
- self.check(b, a)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 37, in check
- tree = self._check(before, after)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 32, in _check
- tree = self.refactor.refactor_string(before, self.filename)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 381, in refactor_string
- self.refactor_tree(tree, name)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 455, in refactor_tree
- new = fixer.transform(node, results)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 43, in transform
- method = self._check_method(node, results)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 89, in _check_method
- method = getattr(self, "_" + results["method"][0].value.encode("ascii"))
- TypeError: Can't convert 'bytes' object to str implicitly
- ======================================================================
- ERROR: test_operator_sequenceIncludes (lib2to3.tests.test_fixers.Test_operator)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 4343, in test_operator_sequenceIncludes
- self.check(b, a)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 37, in check
- tree = self._check(before, after)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_fixers.py", line 32, in _check
- tree = self.refactor.refactor_string(before, self.filename)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 381, in refactor_string
- self.refactor_tree(tree, name)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 455, in refactor_tree
- new = fixer.transform(node, results)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 43, in transform
- method = self._check_method(node, results)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/fixes/fix_operator.py", line 89, in _check_method
- method = getattr(self, "_" + results["method"][0].value.encode("ascii"))
- TypeError: Can't convert 'bytes' object to str implicitly
- ======================================================================
- ERROR: test_all_project_files (lib2to3.tests.test_all_fixers.Test_all)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_all_fixers.py", line 23, in test_all_project_files
- self.refactor.refactor_file(filepath)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 349, in refactor_file
- tree = self.refactor_string(input, filename)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 375, in refactor_string
- name, err.__class__.__name__, err)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/refactor.py", line 372, in refactor_string
- tree = self.driver.parse_string(data)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/pgen2/driver.py", line 105, in parse_string
- return self.parse_tokens(tokens, debug)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/pgen2/driver.py", line 70, in parse_tokens
- if p.addtoken(type, value, (prefix, start)):
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/pgen2/parse.py", line 159, in addtoken
- raise ParseError("bad input", type, value, context)
- lib2to3.pgen2.parse.ParseError: bad input: type=22, value='=', context=('', (82, 38))
- ======================================================================
- FAIL: test_bom (lib2to3.tests.test_refactor.TestRefactoringTool)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_refactor.py", line 240, in test_bom
- data = self.check_file_refactoring(fn)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_refactor.py", line 192, in check_file_refactoring
- self.assertNotEqual(old_contents, new_contents)
- AssertionError: b'\xef\xbb\xbf# coding: utf-8\nprint("BOM BOOM!")\n' == b'\xef\xbb\xbf# coding: utf-8\nprint("BOM BOOM!")\n'
- ======================================================================
- FAIL: test_crlf_newlines (lib2to3.tests.test_refactor.TestRefactoringTool)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_refactor.py", line 249, in test_crlf_newlines
- self.check_file_refactoring(fn, fixes)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_refactor.py", line 192, in check_file_refactoring
- self.assertNotEqual(old_contents, new_contents)
- AssertionError: b'print("hi")\n\nprint("Like bad Windows newlines?")\n' == b'print("hi")\n\nprint("Like bad Windows newlines?")\n'
- ======================================================================
- FAIL: test_file_encoding (lib2to3.tests.test_refactor.TestRefactoringTool)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_refactor.py", line 236, in test_file_encoding
- self.check_file_refactoring(fn)
- File "/home/ci/prog/cpython/benchmarks/py3/lib/2to3/lib2to3/tests/test_refactor.py", line 192, in check_file_refactoring
- self.assertNotEqual(old_contents, new_contents)
- 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"
- ----------------------------------------------------------------------
- Ran 572 tests in 10.023s
- FAILED (failures=3, errors=17)