[server/test] dict.itervalues() → iter(dict.values())
authorJulien Cristau <julien.cristau@logilab.fr>
Tue, 03 Nov 2015 16:00:34 +0100
changeset 10800 1e4ddf5ee9ad
parent 10799 ec97974b9010
child 10801 b4beaf0bccea
[server/test] dict.itervalues() → iter(dict.values())
server/test/unittest_migractions.py
--- a/server/test/unittest_migractions.py	Wed Sep 16 16:04:17 2015 +0200
+++ b/server/test/unittest_migractions.py	Tue Nov 03 16:00:34 2015 +0100
@@ -786,14 +786,14 @@
 
     def test_computed_relation_sync_schema_props_perms_security(self):
         with self.mh() as (cnx, mh):
-            rdef = next(self.schema['perm_changes'].rdefs.itervalues())
+            rdef = next(iter(self.schema['perm_changes'].rdefs.values()))
             self.assertEqual(rdef.permissions,
                              {'add': (), 'delete': (),
                               'read': ('managers', 'users')})
             mh.cmd_sync_schema_props_perms('perm_changes')
             self.assertEqual(self.schema['perm_changes'].permissions,
                              {'read': ('managers',)})
-            rdef = next(self.schema['perm_changes'].rdefs.itervalues())
+            rdef = next(iter(self.schema['perm_changes'].rdefs.values()))
             self.assertEqual(rdef.permissions,
                              {'add': (), 'delete': (),
                               'read': ('managers',)})