Bug#903533: yapf FTBFS with Python 3.7 as supported version

2018-08-14 Thread Ana C. Custura
Ah, I missed this - thank you.

Ana

On Tue, Aug 14, 2018, at 3:05 PM, Matthias Klose wrote:
>* debian/rules:
>- prevents some Python3 tests from running (Closes: #903533)
> 
> this doesn't address the failures in the autopkg tests.



Bug#903533: yapf FTBFS with Python 3.7 as supported version

2018-08-03 Thread Nicholas D Steeves
On Fri, Aug 03, 2018 at 01:56:53PM +0100, Ana Custura wrote:
> Hi Nicholas,
> 
> I'm on it
> 
> Ana

Thank you Ana :-)

Cheers,
Nicholas


signature.asc
Description: PGP signature


Bug#903533: yapf FTBFS with Python 3.7 as supported version

2018-08-03 Thread Ana Custura
Hi Nicholas,

I'm on it

Ana


On 03/08/18 00:41, Nicholas D Steeves wrote:
> I hope this bug is fixed before 21 Aug, because yapf is marked for
> autoremoval on the 23rd, and this will result in elpy's autoremoval
> that same day.
>
> Cheers,
> Nicholas




signature.asc
Description: OpenPGP digital signature


Bug#903533: yapf FTBFS with Python 3.7 as supported version

2018-08-02 Thread Nicholas D Steeves
I hope this bug is fixed before 21 Aug, because yapf is marked for
autoremoval on the 23rd, and this will result in elpy's autoremoval
that same day.

Cheers,
Nicholas


signature.asc
Description: PGP signature


Bug#903533: yapf FTBFS with Python 3.7 as supported version

2018-07-10 Thread Adrian Bunk
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..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),
   ('.', 100),
   ('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