[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#759500: marked as done (python-apt: fix FTBFS (test_pep8) with pep8 >= 1.5)



Your message dated Mon, 01 Sep 2014 12:15:31 -0300
with message-id <54048D93.1080402@linux.vnet.ibm.com>
and subject line python-apt: #759500 closed with patch from #755342
has caused the Debian Bug report #759500,
regarding python-apt: fix FTBFS (test_pep8) with pep8 >= 1.5
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
759500: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=759500
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: src:python-apt
Version: 0.9.3.8
Tags: patch
User: debian-powerpc@lists.debian.org
Usertags: ppc64el

Hi,

This patch adds E129 to --ignore in 'tests/test_pep8.py', as pep8 1.5
introduced the following [1], and E125 was already there.

	1.5 (2014-03-26)
	Changes:
Report E129 instead of E125 for visually indented line with same indent as next logical line. (Issue #126)

Thus fixing this test-suite error:

/«PKGBUILDDIR»/tests/../tests/old/test_enhances.py:14:21: E129 visually indented line with same indent as next logical line
	[...]
	FAIL: test_pep8 (test_pep8.PackagePep8TestCase)

It can be seen currently on build logs of ppc64el [2] and s390, as these archs have attempted to build python-apt after Debian's pep8 moved from 1.4.6 to 1.5.7
(23 Jul):

	pep8 (1.5.7-1) unstable; urgency=medium

	  [ David Watson ]
	  * New upstream release. (Closes: #754985)
	[...]
	 -- David Watson <dwatson@debian.org>  Wed, 23 Jul 2014 10:04:53 +0100

I'd think other archs would see this error too on a next build.

With the patch, the test pass successfully on python 2.7 and 3.4:

	(sid-ppc64el-sbuild)$ python2.7 tests/test_all.py -v PackagePep8TestCase
	[tests] Running on 2.7.8 (default, Aug 26 2014, 22:15:24) [GCC 4.9.1]
Using library_dir: '/root/python-apt-0.9.3.8/build/lib.linux-ppc64le-2.7'test_pep8 (test_pep8.PackagePep8TestCase) ... ok

	----------------------------------------------------------------------
	Ran 1 test in 1.511s

	OK
	(sid-ppc64el-sbuild)$ python3.4 tests/test_all.py -v PackagePep8TestCase
	[tests] Running on 3.4.1+ (default, Aug 21 2014, 11:23:41) [GCC 4.9.1]
Using library_dir: '/root/python-apt-0.9.3.8/build/lib.linux-ppc64le-3.4'test_pep8 (test_pep8.PackagePep8TestCase) ... ok

	----------------------------------------------------------------------
	Ran 1 test in 1.526s

	OK


Thanks.

P.S.: I'm debugging the other test failure too (test_add_key_from_server_mitm), in case you'd like to wait and make a single upload including both fixes. That
should be submitted soon.


[1] https://pypi.python.org/pypi/pep8
[2] https://buildd.debian.org/status/fetch.php?pkg=python-apt&arch=ppc64el&ver=0.9.3.8&stamp=1408742227


--
Mauricio Faria de Oliveira
IBM Linux Technology Center
diff -Nru python-apt-0.9.3.8/debian/changelog python-apt-0.9.3.8ppc64el1/debian/changelog
--- python-apt-0.9.3.8/debian/changelog	2014-06-30 08:32:24.000000000 -0300
+++ python-apt-0.9.3.8ppc64el1/debian/changelog	2014-08-27 16:15:14.000000000 -0300
@@ -1,3 +1,9 @@
+python-apt (0.9.3.8ppc64el1) UNRELEASED; urgency=medium
+
+  * tests/test_pep8.py: --ignore E129 too (fix FTBFS with pep8 >= 1.5)
+
+ -- Mauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com>  Wed, 27 Aug 2014 16:09:14 -0300
+
 python-apt (0.9.3.8) unstable; urgency=medium
 
   * pep8 fixes to fix autopkgtest failure with the most recent
diff -Nru python-apt-0.9.3.8/tests/test_pep8.py python-apt-0.9.3.8ppc64el1/tests/test_pep8.py
--- python-apt-0.9.3.8/tests/test_pep8.py	2014-06-30 08:32:24.000000000 -0300
+++ python-apt-0.9.3.8ppc64el1/tests/test_pep8.py	2014-08-27 16:16:50.000000000 -0300
@@ -16,8 +16,10 @@
              # E126 continuation line over-indented for hanging indent
              # E127 continuation line over-indented for visual indent
              # E128 continuation line under-indented for visual indent
+             # E129 continuation line does not distinguish itself from
+             #      next logical line
              # E265 block comment should start with '# '
-             "--ignore=E125,E126,E127,E128,E265",
+             "--ignore=E125,E126,E127,E128,E129,E265",
              "--exclude", "build,tests/old",
              "--repeat", py_dir])
         if res != 0:

--- End Message ---
--- Begin Message ---
The patch fixing this bug was incorporated in #755342,
which was closed with python-apt release 0.9.3.9 [1].

[1] https://bugs.debian.org/755342#20

--
Mauricio Faria de Oliveira
IBM Linux Technology Center

--- End Message ---

Reply to: