[Python-modules-team] Bug#765117: Bug#765117: python-django: FTBFS: Tests failures

Brian May brian at microcomaustralia.com.au
Mon Oct 13 23:49:36 UTC 2014


One mystery resolved.

>From django/core/management/commands/loaddata.py line 297:

        elif fixture_name == 'initial_data' and fixture_files:
            warnings.warn(
                'initial_data fixtures are deprecated. Use data migrations
instead.',
                RemovedInDjango19Warning
            )

Under python2, the fixture_name contains u'initial_data', so the if
condition fails.

Under python3, the fixture_name contains 'initial_data', so the if
condition succeeds.

This is no doubt because the tests/fixtures/tests.py file contains "from
__future__ import unicode_literals" at the very top.

Still not sure why this only recently became an issue in unstable.
-- 
Brian May <brian at microcomaustralia.com.au>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20141014/4ec255ec/attachment-0001.html>


More information about the Python-modules-team mailing list