Opened 11 years ago

Closed 11 years ago

Last modified 10 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: dev
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

Description

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/tests.py", 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 by Tim Graham, 11 years ago

Triage Stage: UnreviewedAccepted

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

comment:2 by Shai Berger <shai@…>, 11 years ago

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 by Tim Graham <timograham@…>, 10 years ago

In e8223b889aab3b5ac0c2312eb9ee2307ea635c97:

Corrected test assertion from refs #21403.

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