Opened 13 years ago
Closed 13 years ago
#17938 closed Bug (fixed)
Transient failure of regressiontests.servers.tests.LiveServerDatabase on oracle
Reported by: | Nate Bragg | Owned by: | nobody |
---|---|---|---|
Component: | Testing framework | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
When running the entire test suite against oracle xe 10g, the following failure is seen:
====================================================================== FAIL: test_database_writes (regressiontests.servers.tests.LiveServerDatabase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/nate/django/trunk/tests/regressiontests/servers/tests.py", line 215, in test_database_writes self.assertEquals(names, ['jane', 'robert', 'emily']) AssertionError: Lists differ: [u'emily', u'jane', u'robert'] != ['jane', 'robert', 'emily'] First differing element 0: emily jane - [u'emily', u'jane', u'robert'] + ['jane', 'robert', 'emily']
Strangely, this does not happen when run in isolation. Inspecting the query results just shows that Oracle is returning the results unordered. The correct thing to do then would be to use order_by
Attachments (1)
Change History (4)
by , 13 years ago
Attachment: | 17938.patch added |
---|
comment:1 by , 13 years ago
Severity: | Release blocker → Normal |
---|
comment:2 by , 13 years ago
Triage Stage: | Unreviewed → Ready for checkin |
---|---|
Type: | Uncategorized → Bug |
comment:3 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
In [17869]: