Mike Bayer avatar Mike Bayer committed 7e5c3cb

oh, its UNION ordering that's changing

Comments (0)

Files changed (1)

test/orm/inheritance/concrete.py

         
         c1 = C(cname='c1')
         c2 = C(cname='c2')
-        a1 = A(some_c=c1, aname='a1')
-        a2 = A(some_c=c2, aname='a2')
-        b1 = B(some_c=c1, bname='b1')
-        b2 = B(some_c=c1, bname='b2')
+        a1 = A(some_c=c1, aname='a1', id=1)
+        a2 = A(some_c=c2, aname='a2', id=2)
+        b1 = B(some_c=c1, bname='b1', id=3)
+        b2 = B(some_c=c1, bname='b2', id=4)
         
         eq_([a2], c2.many_a)
         eq_([a1, b1, b2], c1.many_a)
 
         assert sess.query(C).filter(C.many_a.contains(a2)).one() is c2
         assert sess.query(C).filter(C.many_a.contains(b1)).one() is c1
-        eq_([A(aname='a2')], c2.many_a)
-        eq_([A(aname='a1'), B(bname='b1'), B(bname='b2')], c1.many_a)
+        eq_(c2.many_a, [a2])
+        eq_(c1.many_a, [a1, b1, b2])
         
         sess.expire_all()
         
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.