unittests fail due to ordering issues with python-2.7
Issue #1888
resolved
when building SQLAlchemy on current Fedora Linux development branch with python-2.7, I'm getting unittest failures due to some results being returned from the database in a different order than the tests expect. I'm not sure precisely whether it is a change in python or some other component that is causing this but I have a patch to fix it.
Comments (6)
-
repo owner -
Account Deleted 0.6.5 has only a failing unittests due to ordering, thanks!
I'll attach a patch for the few remaining failures
-
Account Deleted Patch against 0.6.5 for unittest ordering failures
-
repo owner thanks that patch is in 926b0d7fa860abee8b34236148fa34a6666700a9
-
repo owner - changed status to resolved
i think this was supposed to be closed
-
repo owner - removed milestone
Removing milestone: 0.6.xx (automated comment)
- Log in to comment
this looks very nice. It would be preferable if the relationship loads used an "order_by" on the relationship, rather than forcing things with sorted:
there's so many hundreds of tests like these and its already tough to keep them all in the same format (as above, it was using an extremely ancient pattern of embedding mapper() in relationship() - yuck !) so at least sticking to the "order by" pattern doesn't start introducing yet another pattern.