Opened 9 years ago

Closed 8 years ago

#20553 closed Cleanup/optimization (fixed)

Useless checks in loadddata [fix in 1.7]

Reported by: Florian Apolloner Owned by: nobody
Component: Core (Management commands) Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Since [51aa000378c00a442273f01142acdebc94dec68d] Jenkins is failing with:

Traceback (most recent call last):
  File "/var/lib/jenkins/jobs/Django/workspace/database/sqlite3/python/python2.7/tests/fixtures_regress/", line 155, in test_absolute_path
  File "/var/lib/jenkins/jobs/Django/workspace/database/sqlite3/python/python2.7/django/core/management/", line 161, in call_command
    return klass.execute(*args, **defaults)
  File "/var/lib/jenkins/jobs/Django/workspace/database/sqlite3/python/python2.7/django/core/management/", line 283, in execute
    output = self.handle(*args, **options)
  File "/var/lib/jenkins/jobs/Django/workspace/database/sqlite3/python/python2.7/django/core/management/commands/", line 54, in handle
  File "/var/lib/jenkins/jobs/Django/workspace/database/sqlite3/python/python2.7/django/core/management/commands/", line 83, in loaddata
  File "/var/lib/jenkins/jobs/Django/workspace/database/sqlite3/python/python2.7/django/core/management/commands/", line 118, in load_label
    for fixture_file, fixture_dir, fixture_name in self.find_fixtures(fixture_label):
  File "/var/lib/jenkins/jobs/Django/workspace/database/sqlite3/python/python2.7/django/utils/", line 32, in wrapper
    result = func(*args)
  File "/var/lib/jenkins/jobs/Django/workspace/database/sqlite3/python/python2.7/django/core/management/commands/", line 178, in _find_fixtures
    "serialization format." % tuple(fixture_name.rsplit('.')))
CommandError: Problem installing fixture '/var/lib/jenkins/jobs/Django/workspace/database/sqlite3/python/python2': 7/tests/fixtures_regress/fixtures/absolute is not a known serialization format.

It's currently fixed via [6900cb79dcbc502e0b18476e53ad493b7069ffb8], but this check should really go aways since it prevents me from naming my fixture 'myfixture.v3' or 'myfixture.v3.xml.gz'.

Since we don't want to introduce any backwards incompatible changes post-alpha this will be fixed in 1.7 and this ticket acts as a reminder.

Change History (2)

comment:1 Changed 9 years ago by Anssi Kääriäinen

Triage Stage: UnreviewedAccepted

#20551 is somewhat related. If we change loaddata, then #20551 contains some ideas for even larger changes than this ticket's proposal.

comment:2 Changed 8 years ago by Claude Paroz

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top