StoreTest.test_reference_set_find is dependent on ordering

Bug #393967 reported by Jason Baker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Storm
Fix Committed
Undecided
Unassigned

Bug Description

The results of test_reference_set_find are ordering dependent. The error lies here:

for bar in foo.bars.find():
        items.append((bar.id, bar.foo_id, bar.title))

items.sort()

...

self.assertTrue(objects[0] is bar)

Instead of referencing bar as set up in add_reference_set_bar_400, it is referencing whatever is the last item found in the for loop above, which may not be the intended object to compare to.

Revision history for this message
Jason Baker (jbaker) wrote :

A fix is committed in lp:~zeomega/storm/zeomega_storm rev 339

Changed in storm:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.