2019-02-04 19:46:20 +01:00
|
|
|
Index: virt-manager-2.1.0/tests/clitest.py
|
2017-12-04 13:59:19 +01:00
|
|
|
===================================================================
|
2019-02-04 19:46:20 +01:00
|
|
|
--- virt-manager-2.1.0.orig/tests/clitest.py
|
|
|
|
+++ virt-manager-2.1.0/tests/clitest.py
|
|
|
|
@@ -204,7 +204,7 @@ class Command(object):
|
2017-12-04 13:59:19 +01:00
|
|
|
|
|
|
|
try:
|
|
|
|
conn = None
|
|
|
|
- for idx in reversed(range(len(self.argv))):
|
|
|
|
+ for idx in reversed(list(range(len(self.argv)))):
|
|
|
|
if self.argv[idx] == "--connect":
|
2018-10-30 23:00:52 +01:00
|
|
|
conn = utils.URIs.openconn(self.argv[idx + 1])
|
2017-12-04 13:59:19 +01:00
|
|
|
break
|
2019-02-04 19:46:20 +01:00
|
|
|
Index: virt-manager-2.1.0/tests/test_inject.py
|
2017-12-04 13:59:19 +01:00
|
|
|
===================================================================
|
2019-02-04 19:46:20 +01:00
|
|
|
--- virt-manager-2.1.0.orig/tests/test_inject.py
|
|
|
|
+++ virt-manager-2.1.0/tests/test_inject.py
|
2018-10-30 23:00:52 +01:00
|
|
|
@@ -15,7 +15,7 @@ FEDORA_URL = "http://dl.fedoraproject.or
|
2017-12-04 13:59:19 +01:00
|
|
|
|
2018-10-30 23:00:52 +01:00
|
|
|
(WARN_RHEL5,
|
|
|
|
WARN_DEBIAN,
|
|
|
|
- WARN_FEDORA) = range(1, 4)
|
|
|
|
+ WARN_FEDORA) = list(range(1, 4))
|
2017-12-04 13:59:19 +01:00
|
|
|
|
|
|
|
|
|
|
|
def prompt():
|
2018-10-30 23:00:52 +01:00
|
|
|
@@ -115,7 +115,7 @@ def _make_tests():
|
2017-12-04 13:59:19 +01:00
|
|
|
return lambda s: _test_distro(_d)
|
|
|
|
|
|
|
|
idx = 0
|
|
|
|
- for dname, dobj in _alldistros.items():
|
|
|
|
+ for dname, dobj in list(_alldistros.items()):
|
|
|
|
idx += 1
|
2018-10-30 23:00:52 +01:00
|
|
|
setattr(InjectTests, "testInitrd%.3d_%s" %
|
|
|
|
(idx, dname.replace("-", "_")), _make_check_cb(dobj))
|