Fix py34 error of indexing 'dict_keys' object
In python3, keys() of a dict isn't a list and cannot be indexed. Change-Id: I8a5b8e66a69f7096b2e5388bdeb12bb800879158 Closes-Bug: #1550184
This commit is contained in:
parent
87fe86bcf8
commit
1cef9f0e33
@ -1340,7 +1340,7 @@ class TestReconMiddleware(unittest.TestCase):
|
||||
os.listdir = fail_os_listdir
|
||||
resp = self.real_app_get_device_info()
|
||||
os.listdir = self.real_listdir
|
||||
device_path = resp.keys()[0]
|
||||
device_path = list(resp)[0]
|
||||
self.assertIsNone(resp[device_path])
|
||||
|
||||
def test_get_swift_conf_md5(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user