tests: Fix compatibility with Python3

xrange was renamed to range in Python3.

Related: #2091624
This commit is contained in:
Marian Csontos 2022-06-24 14:46:03 +02:00
parent 15c484f8f6
commit 4abddc4a75

View File

@ -1281,7 +1281,7 @@ class LVM:
_print("WARN: (%s) does not match lvs output format" % lv)
continue
lv_info_dict = {}
for index in xrange(len(param_names)):
for index in range(len(param_names)):
lv_info_dict[param_names[index]] = m.group(index + 1)
lv_list.append(lv_info_dict)