Opened 2 years ago

Closed 2 years ago

Last modified 12 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.

Change History (3)

comment:1 Changed 2 years 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 2 years 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.

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

In e8223b889aab3b5ac0c2312eb9ee2307ea635c97:

Corrected test assertion from refs #21403.

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