sql.test_selectable test_reduce_aliased_union_2 relies on dict ordering

Issue #1486 resolved
Philip Jenvey created an issue

This is one of the failures on Jython w/ Apple Java 1.5, turned out to be dict ordering. Reproducable on CPython via:

Index: test/sql/test_selectable.py
===================================================================
--- test/sql/test_selectable.py (revision 6210)
+++ test/sql/test_selectable.py (working copy)
@@ -419,7 +419,7 @@
         from sqlalchemy.orm.util import polymorphic_union
         pjoin = polymorphic_union(
             {
-                'm': page_table.join(magazine_page_table),
+                '_m': page_table.join(magazine_page_table),
                 'c': page_table.join(magazine_page_table).join(classified_page_table),
             }, None, 'page_join')

Comments (3)

  1. Log in to comment