Opened 8 months ago

Closed 8 months ago

#21403 closed Bug (fixed)

regression test fails on Oracle

Reported by: shai Owned by: shai
Component: Database layer (models, ORM) Version: master
Severity: Release blocker Keywords: oracle
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


With current master, I'm getting:

FAIL: test_annotate (generic_relations_regress.tests.GenericRelationTests)
Traceback (most recent call last):
  File ".../django/tests/generic_relations_regress/", line 227, in test_annotate
    self.assertEqual(qs[0].links__sum, 1)
AssertionError: 21 != 1


Haven't investigated further yet.

Attachments (0)

Change History (2)

comment:1 Changed 8 months ago by timo

  • Triage Stage changed from Unreviewed to Accepted

Test was added in 76da053641e52db540801e18b362497c01e9bb1d. There were no functional changes in that commit, just the test.

comment:2 Changed 8 months ago by Shai Berger <shai@…>

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

In 3411af3cd195ef79f3320ee9b2ab261e9ee5a3f5:

Fixed #21403: Corrected test code

A test for annotations incorrectly assumed that the first instance
(in the test) of a model using AutoField for PK will always get pk=1.
The test was changed to compare against actual instance id instead.

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.