[Python-modules-team] Bug#755647: Fails to build with Django 1.7

Raphael Hertzog hertzog at debian.org
Thu Aug 7 20:20:42 UTC 2014


Control: tag -1 + confirmed

The package fails to build with Django 1.7:

   debian/rules override_dh_auto_test
make[1]: Entering directory '/«PKGBUILDDIR»'
django-admin startproject testproject
Using: Python 2.7
if [ -d testproject/testproject ]; then \
        cp debian/settings.py testproject/testproject ; \
else \
        cp debian/settings.py testproject ; \
fi
set -e; \
for python in python2.7; do \
        PYTHONPATH=".:src:testproject" $python testproject/manage.py test --settings=testproject.settings picklefield ; \
done
System check identified some issues:

WARNINGS:
?: (1_7.W001) MIDDLEWARE_CLASSES is not set.
        HINT: Django 1.7 changed the global defaults for the MIDDLEWARE_CLASSES. django.contrib.sessions.middleware.SessionMiddleware, django.contrib.auth.middleware.AuthenticationMiddleware, and django.contrib.messages.middleware.MessageMiddleware were removed from the defaults. If your project needs these middleware then you should configure this setting.
[...]..F
======================================================================
FAIL: testSerialization (picklefield.tests.PickledObjectFieldTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/«PKGBUILDDIR»/src/picklefield/tests.py", line 171, in testSerialization
    model)
AssertionError: <MinimalTestingModel: MinimalTestingModel object> != <MinimalTestingModel: MinimalTestingModel object>

----------------------------------------------------------------------
Ran 3 tests in 0.023s

FAILED (failures=1)
Creating test database for alias 'default'...
Destroying test database for alias 'default'...
make[1]: *** [override_dh_auto_test] Error 1


Cheers,

-- 
Raphaël Hertzog ◈ Debian Developer

Discover the Debian Administrator's Handbook:
→ http://debian-handbook.info/get/



More information about the Python-modules-team mailing list