tests: cast division result to int
Otherwise it is a float on Python 3 and code later compares about
casting a float to an int.
Differential Revision: https://phab.mercurial-scm.org/D5759
--- a/tests/test-remotefilelog-datapack.py Wed Jan 30 13:30:01 2019 -0800
+++ b/tests/test-remotefilelog-datapack.py Wed Jan 30 13:34:47 2019 -0800
@@ -292,7 +292,7 @@
class testdatapackstore(datapack.datapackstore):
# Ensures that we are not keeping everything in the cache.
- DEFAULTCACHESIZE = numpacks / 2
+ DEFAULTCACHESIZE = int(numpacks / 2)
store = testdatapackstore(uimod.ui(), packdir)