tests: cast division result to int
authorGregory Szorc <gregory.szorc@gmail.com>
Wed, 30 Jan 2019 13:34:47 -0800
changeset 41474 e971952db109
parent 41473 90b3898cf0db
child 41475 30b762a330c8
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
tests/test-remotefilelog-datapack.py
--- 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)