diff tests/test-remotefilelog-datapack.py @ 41541:eb37d95cc486

py3: use integer division instead of `int(...)` call Changeset 38a82e0333c9 and 7f853549823b introduced explicit conversion to integer to work around the division behavior change from python2 to python3. Using the integer division operator is a simpler and clearer way to achieve this.
author Boris Feld <boris.feld@octobus.net>
date Sun, 03 Feb 2019 10:01:43 +0100
parents e971952db109
children 2372284d9457
line wrap: on
line diff
--- a/tests/test-remotefilelog-datapack.py	Sun Feb 03 17:15:11 2019 +0530
+++ b/tests/test-remotefilelog-datapack.py	Sun Feb 03 10:01:43 2019 +0100
@@ -292,7 +292,7 @@
 
         class testdatapackstore(datapack.datapackstore):
             # Ensures that we are not keeping everything in the cache.
-            DEFAULTCACHESIZE = int(numpacks / 2)
+            DEFAULTCACHESIZE = numpacks // 2
 
         store = testdatapackstore(uimod.ui(), packdir)