[Python-modules-team] Bug#908700: pep8: FTBFS (test_checkers_testsuite fails)

Santiago Vila sanvila at debian.org
Wed Sep 12 20:58:48 BST 2018


Package: src:pep8
Version: 1.7.1-1
Severity: serious
Tags: ftbfs

Dear maintainer:

I tried to build this package in buster but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions
py3versions: no X-Python3-Version in control file, using supported versions
dh  build-indep --buildsystem=python_distutils --with python2,python3
   dh_update_autotools_config -i -O--buildsystem=python_distutils
   dh_auto_configure -i -O--buildsystem=python_distutils
dh_auto_configure: Please use the third-party "pybuild" build system instead of python-distutils
dh_auto_configure: This feature will be removed in compat 12.
   dh_auto_build -i -O--buildsystem=python_distutils
dh_auto_build: Please use the third-party "pybuild" build system instead of python-distutils
dh_auto_build: This feature will be removed in compat 12.
pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions
	python setup.py build --force
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
copying pep8.py -> build/lib.linux-x86_64-2.7
running egg_info
writing pep8.egg-info/PKG-INFO
writing namespace_packages to pep8.egg-info/namespace_packages.txt
writing top-level names to pep8.egg-info/top_level.txt
writing dependency_links to pep8.egg-info/dependency_links.txt
writing entry points to pep8.egg-info/entry_points.txt
reading manifest file 'pep8.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.pyc' found under directory 'docs'
warning: no previously-included files matching '*.pyo' found under directory 'docs'
warning: no previously-included files matching '*.pyc' found under directory 'testsuite'
warning: no previously-included files matching '*.pyo' found under directory 'testsuite'
no previously-included directories found matching 'docs/_build'
writing manifest file 'pep8.egg-info/SOURCES.txt'
   debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions
py3versions: no X-Python3-Version in control file, using supported versions
pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions
py3versions: no X-Python3-Version in control file, using supported versions
set -xe; \
for py in python2.7 python3.6; do \
	$py setup.py test; \
done
+ python2.7 setup.py test
running test
running egg_info
writing pep8.egg-info/PKG-INFO
writing namespace_packages to pep8.egg-info/namespace_packages.txt
writing top-level names to pep8.egg-info/top_level.txt
writing dependency_links to pep8.egg-info/dependency_links.txt
writing entry points to pep8.egg-info/entry_points.txt
reading manifest file 'pep8.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.pyc' found under directory 'docs'
warning: no previously-included files matching '*.pyo' found under directory 'docs'
warning: no previously-included files matching '*.pyc' found under directory 'testsuite'
warning: no previously-included files matching '*.pyo' found under directory 'testsuite'
no previously-included directories found matching 'docs/_build'
writing manifest file 'pep8.egg-info/SOURCES.txt'
running build_ext
test_checkers_testsuite (testsuite.test_all.Pep8TestCase) ... /<<PKGBUILDDIR>>/testsuite/W29.py:13:1: W391:1:1 blank line at end of file
/<<PKGBUILDDIR>>/testsuite/W29.py:14:1: error W292:1:5 not found
/<<PKGBUILDDIR>>/testsuite/W29.py:15:1: W391:1:1 blank line at end of file
/<<PKGBUILDDIR>>/testsuite/W29.py:16:1: error W292:1:27 not found
/<<PKGBUILDDIR>>/testsuite/W29.py:17:1: W391:1:1 blank line at end of file
/<<PKGBUILDDIR>>/testsuite/W29.py:18:1: error W292:3:22 not found
/<<PKGBUILDDIR>>/testsuite/W29.py:21:1: W391:3:1 blank line at end of file
FAIL
test_doctest (testsuite.test_all.Pep8TestCase) ... ok
test_own_dog_food (testsuite.test_all.Pep8TestCase) ... ok
test_selftest (testsuite.test_all.Pep8TestCase) ... ok
test_check_nullbytes (testsuite.test_api.APITestCase) ... ok
test_check_unicode (testsuite.test_api.APITestCase) ... ok
test_register_ast_check (testsuite.test_api.APITestCase) ... ok
test_register_invalid_check (testsuite.test_api.APITestCase) ... ok
test_register_logical_check (testsuite.test_api.APITestCase) ... ok
test_register_physical_check (testsuite.test_api.APITestCase) ... ok
test_styleguide (testsuite.test_api.APITestCase) ... ok
test_styleguide_check_files (testsuite.test_api.APITestCase) ... ok
test_styleguide_checks (testsuite.test_api.APITestCase) ... ok
test_styleguide_continuation_line_outdented (testsuite.test_api.APITestCase) ... ok
test_styleguide_excluded (testsuite.test_api.APITestCase) ... ok
test_styleguide_ignore_code (testsuite.test_api.APITestCase) ... ok
test_styleguide_init_report (testsuite.test_api.APITestCase) ... ok
test_styleguide_options (testsuite.test_api.APITestCase) ... ok
test_styleguide_unmatched_triple_quotes (testsuite.test_api.APITestCase) ... ok
test_multiline_ignore_parsing (testsuite.test_parser.ParserTestCase) ... ok
test_multiline_trailing_comma_ignore_parsing (testsuite.test_parser.ParserTestCase) ... ok
test_trailing_comma_ignore_parsing (testsuite.test_parser.ParserTestCase) ... ok
test_vanilla_ignore_parsing (testsuite.test_parser.ParserTestCase) ... ok
test_check_diff (testsuite.test_shell.ShellTestCase) ... ok
test_check_noarg (testsuite.test_shell.ShellTestCase) ... ok
test_check_non_existent (testsuite.test_shell.ShellTestCase) ... ok
test_check_simple (testsuite.test_shell.ShellTestCase) ... ok
test_check_stdin (testsuite.test_shell.ShellTestCase) ... ok
test_print_usage (testsuite.test_shell.ShellTestCase) ... ok
test_normalize_paths (testsuite.test_util.UtilTestCase) ... ok

======================================================================
FAIL: test_checkers_testsuite (testsuite.test_all.Pep8TestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/testsuite/test_all.py", line 37, in test_checkers_testsuite
    msg='%s failure(s)' % report.total_errors)
AssertionError: 7 failure(s)

----------------------------------------------------------------------
Ran 30 tests in 0.485s

FAILED (failures=1)
Test failed: <unittest.runner.TextTestResult run=30 errors=0 failures=1>
error: Test failed: <unittest.runner.TextTestResult run=30 errors=0 failures=1>
make[1]: *** [debian/rules:26: override_dh_auto_test] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:10: build-indep] Error 2
dpkg-buildpackage: error: debian/rules build-indep subprocess returned exit status 2
--------------------------------------------------------------------------------

The build was made in my autobuilder with "dpkg-buildpackage -A"
but it also fails here in both buster and sid with a very similar error:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/pep8.html

Please consider uploading in source-only form (dpkg-buildpackage -S) so that this
kind of bugs never propagate to testing.

Thanks.



More information about the Python-modules-team mailing list