Opened 8 years ago

Closed 8 years ago

#9748 closed (fixed)

r9550 broke modeladmin test

Reported by: Karen Tracey Owned by: nobody
Component: Uncategorized Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


The buildbot ( shows that the trunk tests have been failing since build 142, which was r9550 (fix #8248 -- make help() work on models with ForeignKeyFields). Here's the failure:

FAIL: Doctest: regressiontests.modeladmin.models.__test__.API_TESTS
Traceback (most recent call last):
  File "/home/buildbots/slave/parts/ubuntu-feisty-python2.5-sqlite/django-trunk_ubuntu-feisty-python2.5-sqlite/build/django/test/", line 2180, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for regressiontests.modeladmin.models.__test__.API_TESTS
  File "/home/buildbots/slave/parts/ubuntu-feisty-python2.5-sqlite/django-trunk_ubuntu-feisty-python2.5-sqlite/build/tests/regressiontests/modeladmin/", line unknown line number, in API_TESTS

File "/home/buildbots/slave/parts/ubuntu-feisty-python2.5-sqlite/django-trunk_ubuntu-feisty-python2.5-sqlite/build/tests/regressiontests/modeladmin/", line ?, in regressiontests.modeladmin.models.__test__.API_TESTS
Failed example:
    validate(ValidationTestModelAdmin, ValidationTestModel)
    Traceback (most recent call last):
    ImproperlyConfigured: 'ValidationTestModelAdmin.list_display[0]', 'users' is a ManyToManyField which is not supported.
Got nothing

Ran 547 tests in 906.302s

FAILED (failures=1)
Destroying test database...
program finished with exit code 1

It's not necessary to run the whole suite to get the failure, running just modeladmin is sufficient.

Change History (1)

comment:1 Changed 8 years ago by Jacob

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Resolution: fixed
Status: newclosed

Fixed in [9563].

Note: See TracTickets for help on using tickets.
Back to Top