Nir Soffer has posted comments on this change. Change subject: tool: Make configurators more Pythonic ......................................................................
Patch Set 4: (1 comment) http://gerrit.ovirt.org/#/c/31741/4/tests/toolTests.py File tests/toolTests.py: Line 77: lambda: { Line 78: 'a': MockModuleConfigurator('a', {'b', 'd'}), Line 79: 'b': MockModuleConfigurator('b', {'c'}), Line 80: 'c': MockModuleConfigurator('c', {'e', 'd'}), Line 81: 'd': MockModuleConfigurator('d', {'e', 'e'}), > so you can do - ('a', set(['c', 'b'])) if you want to keep the same behavio Or better, frozenset(...), so bad code trying to modify the value will fail. Line 82: 'e': MockModuleConfigurator('e', set()), Line 83: 'f': MockModuleConfigurator('f', set()), Line 84: Line 85: } -- To view, visit http://gerrit.ovirt.org/31741 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I16092da09d6763a8222bc941bd7d1501a7bb3bff Gerrit-PatchSet: 4 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Nir Soffer <[email protected]> Gerrit-Reviewer: Allon Mureinik <[email protected]> Gerrit-Reviewer: Alon Bar-Lev <[email protected]> Gerrit-Reviewer: Dan Kenigsberg <[email protected]> Gerrit-Reviewer: Dima Kuznetsov <[email protected]> Gerrit-Reviewer: Francesco Romani <[email protected]> Gerrit-Reviewer: Nir Soffer <[email protected]> Gerrit-Reviewer: Yaniv Bronhaim <[email protected]> Gerrit-Reviewer: [email protected] Gerrit-Reviewer: mooli tayer <[email protected]> Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
