Commits

Mike Bayer committed f18bd63

more comparator tweaks

Comments (0)

Files changed (1)

test/orm/inheritance/concrete.py

         b1 = B(some_c=c1, bname='b1')
         b2 = B(some_c=c1, bname='b2')
         
-        assert c2.many_a == [a2]
-        assert c1.many_a == [a1, b1, b2]
+        eq_([a2], c2.many_a)
+        eq_([a1, b1, b2], c1.many_a)
         
         sess.add_all([c1, c2])
         sess.commit()
 
         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
-        assert c2.many_a == [a2]
-        assert c1.many_a == [a1, b1, b2]
+        eq_([A(aname='a2')], c2.many_a)
+        eq_([A(aname='a1'), B(bname='b1'), B(bname='b2')], c1.many_a)
         
         sess.expire_all()