Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#15548 closed (fixed)

ModelAdmin regression test fails on Postgresql

Reported by: Béres Botond Owned by: nobody
Component: contrib.admin Version: master
Severity: Keywords: postgresql blocker
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

======================================================================
FAIL: test_queryset_override (regressiontests.modeladmin.tests.ModelAdminTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/botondus/Envs/django/django/tests/regressiontests/modeladmin/tests.py", line 159, in test_queryset_override
    '</select>' % (self.band.id, band2.id))
AssertionError: '<select name="main_band" id="id_main_band">\n<option value="" selected="selected">---------</option>\n<option value="9">The Beatles</option>\n<option value="8">The Doors</option>\n</select>' != '<select name="main_band" id="id_main_band">\n<option value="" selected="selected">---------</option>\n<option value="8">The Doors</option>\n<option value="9">The Beatles</option>\n</select>'

Change History (3)

comment:1 Changed 6 years ago by Russell Keith-Magee

Resolution: fixed
Status: newclosed

In [15743]:

Fixed #15548 -- Added an ordering clause to prevent test failures under Postgres. Thanks to bberes for the report.

comment:2 Changed 6 years ago by Russell Keith-Magee

In [15746]:

[1.2.X] Fixed #15548 -- Added an ordering clause to prevent test failures under Postgres. Thanks to bberes for the report.

Backport of r15743 from trunk.

comment:3 Changed 5 years ago by Jacob

milestone: 1.3

Milestone 1.3 deleted

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