summaryrefslogtreecommitdiffstats
path: root/tests/bugs/distribute/overlap.py
diff options
context:
space:
mode:
authorKotresh HR <khiremat@redhat.com>2019-06-06 12:54:04 +0530
committerHari Gowtham <hgowtham@redhat.com>2019-06-28 16:37:08 +0530
commit5355f5a18146183a8e27872ebee501acad7b5eb0 (patch)
tree71b7c939d04f5b8470e76cb38e5e48f1b4a06b70 /tests/bugs/distribute/overlap.py
parent515866cd49aadf52c9949f8745fd2ba1ea9c99c3 (diff)
tests/utils: Fix py2/py3 util python scripts
Following files are fixed. tests/bugs/distribute/overlap.py tests/utils/changelogparser.py tests/utils/create-files.py tests/utils/gfid-access.py tests/utils/libcxattr.py Have marked glupy as bad test. Backport of: > Change-Id: I3db857cc19e19163d368d913eaec1269fbc37140 > BUG: 1193929 > Signed-off-by: Kotresh HR <khiremat@redhat.com> Change-Id: I3db857cc19e19163d368d913eaec1269fbc37140 Updates: bz#1629877 Signed-off-by: Kotresh HR <khiremat@redhat.com>
Diffstat (limited to 'tests/bugs/distribute/overlap.py')
-rwxr-xr-xtests/bugs/distribute/overlap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bugs/distribute/overlap.py b/tests/bugs/distribute/overlap.py
index 0941d377624..2813979787b 100755
--- a/tests/bugs/distribute/overlap.py
+++ b/tests/bugs/distribute/overlap.py
@@ -17,7 +17,7 @@ def calculate_one (ov, nv):
def calculate_all (values):
total = 0
- nv_index = len(values) / 2
+ nv_index = len(values) // 2
for old_val in values[:nv_index]:
new_val = values[nv_index]
nv_index += 1