[Python-modules-team] Bug#850236: python-django: FTBFS (AssertionError)

Santiago Vila sanvila at debian.org
Thu Jan 5 10:05:32 UTC 2017


Package: src:python-django
Version: 1:1.10.3-2
Severity: serious

Dear maintainer:

I tried to build this package in stretch with "dpkg-buildpackage -A"
(which is what the "Arch: all" autobuilder would do to build it)
but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
dh build-indep --with sphinxdoc,python2,python3 --buildsystem=pybuild
   dh_testdir -i -O--buildsystem=pybuild
   dh_update_autotools_config -i -O--buildsystem=pybuild
   dh_auto_configure -i -O--buildsystem=pybuild
I: pybuild base:184: python2.7 setup.py config 
running config
I: pybuild base:184: python3.5 setup.py config 
running config
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_build
I: pybuild base:184: /usr/bin/python setup.py build 

[... snipped ...]

test_options (generic_views.test_base.ViewTest) ... ok
test_options_for_get_and_post_view (generic_views.test_base.ViewTest) ... ok
test_options_for_get_view (generic_views.test_base.ViewTest) ... ok
test_options_for_post_view (generic_views.test_base.ViewTest) ... ok
test_pathological_http_method (generic_views.test_base.ViewTest) ... ok
test_response_without_messages (messages_tests.test_middleware.MiddlewareTest) ... ok
test_script_prefix_set_in_commands (user_commands.tests.CommandRunTests) ... ok

======================================================================
FAIL: test_timesince07 (template_tests.filter_tests.test_timesince.TimesinceTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/django/test/utils.py", line 205, in inner
    return func(*args, **kwargs)
  File "/<<PKGBUILDDIR>>/tests/template_tests/utils.py", line 61, in inner
    func(self)
  File "/<<PKGBUILDDIR>>/tests/template_tests/filter_tests/test_timesince.py", line 67, in test_timesince07
    self.assertEqual(output, '1\xa0week')
AssertionError: u'6\xa0days' != u'1\xa0week'

======================================================================
FAIL: test_timesince08 (template_tests.filter_tests.test_timesince.TimesinceTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/django/test/utils.py", line 205, in inner
    return func(*args, **kwargs)
  File "/<<PKGBUILDDIR>>/tests/template_tests/utils.py", line 61, in inner
    func(self)
  File "/<<PKGBUILDDIR>>/tests/template_tests/filter_tests/test_timesince.py", line 74, in test_timesince08
    self.assertEqual(output, '1\xa0week')
AssertionError: u'6\xa0days' != u'1\xa0week'

----------------------------------------------------------------------
Ran 11263 tests in 245.226s

FAILED (failures=2, skipped=1064, expected failures=5)
 OK
Destroying test database for alias 'default' (':memory:')...
Destroying test database for alias 'other' (':memory:')...
debian/rules:24: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:12: recipe for target 'build-indep' failed
make: *** [build-indep] Error 2
dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2
--------------------------------------------------------------------------------

This is just how the build ends, not necessarily the relevant part.

I've put several build logs here:

https://people.debian.org/~sanvila/build-logs/python-django/

If this is really a bug in one of the build-depends, please use reassign and affects,
so that this is still visible in the page for this package.

The bug should be reproducible with sbuild on a single CPU virtual machine.
It always fail for me (I tried 10 times in different autobuilders), and it
also fails here:

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

Thanks.



More information about the Python-modules-team mailing list