[PATCH] Cache ordering is not stable in Python 2.7
Bug #641326 reported by
Michel Lind
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Storm |
Fix Released
|
Undecided
|
Unassigned | ||
Fedora |
Fix Released
|
Medium
|
Bug Description
Fedora is switching to Python 2.7 for the next release, and one of the unit tests in Storm (tested with versions 0.15-0.17) fails because ordering inside a cache is not stable.
This patch sorts the initial objects and the cached ones before asserting that the two lists are equal.
Changed in storm: | |
milestone: | 0.18 → 0.19 |
Changed in storm: | |
milestone: | 0.19 → 0.20 |
Changed in fedora: | |
importance: | Unknown → Medium |
status: | Unknown → Fix Released |
To post a comment you must log in.
Description of problem:
a unittest fails when rebuilding with python-2.7. Looks like the ordering inside of a cache is not stable but storm's test suite doesn't recognize that.
I'm fixing the test suite with the attached patch and rebuilding for f15 and f14. Please submit the patch upstream.