diff options
author | Petr Viktorin <pviktori@redhat.com> | 2016-01-05 13:19:25 +0100 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2016-01-20 11:59:21 +0100 |
commit | 126d8993217e356e771ba9781fb08fa9b3400b11 (patch) | |
tree | 8eac1fed453cadb993dcff72468edb3b81d995d4 /ipatests/test_integration/util.py | |
parent | 7a742391c1558680900bcb130bbf3fe6790fc573 (diff) | |
download | freeipa-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/util.py')
-rw-r--r-- | ipatests/test_integration/util.py | 2 |
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)) |