summaryrefslogtreecommitdiffstats
path: root/ipatests/test_integration
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2016-01-05 13:19:25 +0100
committerJan Cholasta <jcholast@redhat.com>2016-01-20 11:59:21 +0100
commit126d8993217e356e771ba9781fb08fa9b3400b11 (patch)
tree8eac1fed453cadb993dcff72468edb3b81d995d4 /ipatests/test_integration
parent7a742391c1558680900bcb130bbf3fe6790fc573 (diff)
downloadfreeipa-126d8993217e356e771ba9781fb08fa9b3400b11.tar.gz
freeipa-126d8993217e356e771ba9781fb08fa9b3400b11.tar.xz
freeipa-126d8993217e356e771ba9781fb08fa9b3400b11.zip
Use explicit truncating division
In Python 3, the truncating division operator, //, is needed to get C-style "int division". https://fedorahosted.org/freeipa/ticket/5623 Reviewed-By: Jan Cholasta <jcholast@redhat.com> Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'ipatests/test_integration')
-rw-r--r--ipatests/test_integration/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipatests/test_integration/util.py b/ipatests/test_integration/util.py
index 5cfbb2e94..594737b6d 100644
--- a/ipatests/test_integration/util.py
+++ b/ipatests/test_integration/util.py
@@ -57,7 +57,7 @@ def run_repeatedly(host, command, assert_zero_rc=True, test=None,
raise AssertionError("Command: {cmd} repeatedly failed {times} times, "
"exceeding the timeout of {timeout} seconds."
.format(cmd=' '.join(command),
- times=timeout / time_step,
+ times=timeout // time_step,
timeout=timeout))