Opened 5 years ago

Closed 4 years ago

Last modified 3 years ago

#21403 closed Bug (fixed)

regression test fails on Oracle

Reported by: Shai Berger Owned by: Shai Berger
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.

Change History (3)

comment:1 Changed 5 years ago by Tim Graham

Triage Stage: UnreviewedAccepted

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

comment:2 Changed 4 years ago by Shai Berger <shai@…>

Resolution: fixed
Status: newclosed

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.

comment:3 Changed 3 years ago by Tim Graham <timograham@…>

In e8223b889aab3b5ac0c2312eb9ee2307ea635c97:

Corrected test assertion from refs #21403.

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