Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#15548 closed (fixed)

ModelAdmin regression test fails on Postgresql

Reported by: bberes Owned by: nobody
Component: contrib.admin Version: master
Severity: Keywords: postgresql blocker
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation:
Needs tests: Patch needs improvement:
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 5 years ago by russellm

  • Resolution set to fixed
  • Status changed from new to closed

In [15743]:

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

comment:2 Changed 5 years ago by russellm

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 4 years ago by jacob

  • milestone 1.3 deleted

Milestone 1.3 deleted

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