Source: yapf Version: 0.22.0-1 Severity: serious https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/yapf.html
... I: pybuild base:217: cd /build/1st/yapf-0.22.0/.pybuild/cpython3_3.7_yapf/build; python3.7 -m nose .............................................................................................................F.......................................................F.............................................................................................................................................................................................................................SSSS.F................................................................................................... ====================================================================== FAIL: testAsyncAsNonKeyword (yapftests.reformatter_basic_test.BasicReformatterTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/build/1st/yapf-0.22.0/.pybuild/cpython3_3.7_yapf/build/yapftests/reformatter_basic_test.py", line 2489, in testAsyncAsNonKeyword self.assertCodeEqual(code, reformatter.Reformat(uwlines, verify=False)) File "/build/1st/yapf-0.22.0/.pybuild/cpython3_3.7_yapf/build/yapftests/yapf_test_helper.py", line 57, in assertCodeEqual self.fail('\n'.join(msg)) AssertionError: Code format mismatch: Expected: > from util import async > > > class A(object): > def foo(self): > async.run() > > def bar(self): > pass Actual: > from util import async > > > class A(object): > def foo(self): > async .run() > > def bar(self): > pass Diff: --- actual +++ expected @@ -3,7 +3,7 @@ class A(object): def foo(self): - async .run() + async.run() def bar(self): pass ====================================================================== FAIL: testListComprehensionPreferThreeLinesForLineWrap (yapftests.reformatter_basic_test.BasicReformatterTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/build/1st/yapf-0.22.0/.pybuild/cpython3_3.7_yapf/build/yapftests/reformatter_basic_test.py", line 526, in testListComprehensionPreferThreeLinesForLineWrap self.assertCodeEqual(expected_formatted_code, reformatter.Reformat(uwlines)) File "/build/1st/yapf-0.22.0/.pybuild/cpython3_3.7_yapf/build/yapftests/yapf_test_helper.py", line 57, in assertCodeEqual self.fail('\n'.join(msg)) AssertionError: Code format mismatch: Expected: > def given(y): > long_variable_name = [ > long_var_name + 1 > for long_var_name, number_two in () > if long_var_name == 2 and number_two == 3 > ] Actual: > def given(y): > long_variable_name = [ > long_var_name + 1 for long_var_name, number_two in () > if long_var_name == 2 and number_two == 3 > ] Diff: --- actual +++ expected @@ -1,5 +1,6 @@ def given(y): long_variable_name = [ - long_var_name + 1 for long_var_name, number_two in () + long_var_name + 1 + for long_var_name, number_two in () if long_var_name == 2 and number_two == 3 ] ====================================================================== FAIL: testStronglyConnected (yapftests.split_penalty_test.SplitPenaltyTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/build/1st/yapf-0.22.0/.pybuild/cpython3_3.7_yapf/build/yapftests/split_penalty_test.py", line 205, in testStronglyConnected (']', None), File "/build/1st/yapf-0.22.0/.pybuild/cpython3_3.7_yapf/build/yapftests/split_penalty_test.py", line 72, in _CheckPenalties self.assertEqual(list_of_expected, FlattenRec(tree)) AssertionError: Lists differ: [('['[25 chars]or', 0), ('a', 3000), ('in', 3000), ('foo', 30[93 chars]one)] != [('['[25 chars]or', None), ('a', None), ('in', None), ('foo',[99 chars]one)] First differing element 2: ('for', 0) ('for', None) [('[', None), ('a', None), - ('for', 0), ? ^ + ('for', None), ? ^^^^ - ('a', 3000), - ('in', 3000), - ('foo', 3000), + ('a', None), + ('in', None), + ('foo', None), - ('if', 0), ? ^ + ('if', None), ? ^^^^ - ('a', 3000), + ('a', None), ('.', 1000000), ('x', 4000), ('==', 3000), ('37', 3000), (']', None)] ---------------------------------------------------------------------- Ran 492 tests in 14.484s FAILED (SKIP=4, failures=3) E: pybuild pybuild:336: test: plugin distutils failed with: exit code=1: cd /build/1st/yapf-0.22.0/.pybuild/cpython3_3.7_yapf/build; python3.7 -m nose dh_auto_test: pybuild --test -i python{version} -p "3.7 3.6" returned exit code 13 make: *** [debian/rules:10: build] Error 25