Change in vdsm[master]: tests: Fix Python 2.6 compatibility
nsoffer at redhat.com
nsoffer at redhat.com
Thu Aug 21 18:29:22 UTC 2014
Nir Soffer has uploaded a new change for review.
Change subject: tests: Fix Python 2.6 compatibility
......................................................................
tests: Fix Python 2.6 compatibility
Recent tests use set comprehension which is available only in Python
2.7, failing builds on EL machines.
Change-Id: Idf684f2dbee3a024d90d7d9fd7378636fad2ea8d
Signed-off-by: Nir Soffer <nsoffer at redhat.com>
---
M tests/toolTests.py
1 file changed, 5 insertions(+), 5 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/85/31785/1
diff --git a/tests/toolTests.py b/tests/toolTests.py
index 88e249f..1881c47 100644
--- a/tests/toolTests.py
+++ b/tests/toolTests.py
@@ -73,10 +73,10 @@
configurator,
'_getConfigurers',
lambda: {
- 'a': MockModuleConfigurator('a', {'b', 'd'}),
- 'b': MockModuleConfigurator('b', {'c'}),
- 'c': MockModuleConfigurator('c', {'e', 'd'}),
- 'd': MockModuleConfigurator('d', {'e', 'e'}),
+ 'a': MockModuleConfigurator('a', set(['b', 'd'])),
+ 'b': MockModuleConfigurator('b', set(['c'])),
+ 'c': MockModuleConfigurator('c', set(['e', 'd'])),
+ 'd': MockModuleConfigurator('d', set(['e', 'e'])),
'e': MockModuleConfigurator('e', set()),
'f': MockModuleConfigurator('f', set()),
@@ -107,7 +107,7 @@
configurator,
'_getConfigurers',
lambda: {
- 'a': MockModuleConfigurator('a', {'b', 'c'}),
+ 'a': MockModuleConfigurator('a', set(['b', 'c'])),
'b': MockModuleConfigurator('b', set()),
'c': MockModuleConfigurator('c', set())
}
--
To view, visit http://gerrit.ovirt.org/31785
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Idf684f2dbee3a024d90d7d9fd7378636fad2ea8d
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Nir Soffer <nsoffer at redhat.com>
More information about the vdsm-patches
mailing list