[tests] remove useless sort
authorRémi Cardona <remi.cardona@logilab.fr>
Fri, 18 Sep 2015 12:35:10 +0200
changeset 10710 37d7a1187af7
parent 10709 3ada28a113f8
child 10711 d7f009a3b960
[tests] remove useless sort Useless in python 2, actively harmful in python 3 where arbitrary objects are no longer sortable.
test/unittest_schema.py
--- a/test/unittest_schema.py	Fri Sep 18 12:34:51 2015 +0200
+++ b/test/unittest_schema.py	Fri Sep 18 12:35:10 2015 +0200
@@ -557,7 +557,7 @@
             self.set_description('composite rdefs for %s' % etype)
             yield self.assertEqual, self.composites[etype], \
                              sorted([(r.rtype.type, r.subject.type, r.object.type, role)
-                                     for r, role in sorted(schema[etype].composite_rdef_roles)])
+                                     for r, role in schema[etype].composite_rdef_roles])
 
 
 if __name__ == '__main__':