# HG changeset patch # User Gregory Szorc # Date 2019-01-30 21:34:47 # Node ID 38a82e0333c970dca1da449d42a3ccfc02e15800 # Parent 04c448d90ba9b490ae3e199a17f92c85abb71a80 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 diff --git a/tests/test-remotefilelog-datapack.py b/tests/test-remotefilelog-datapack.py --- a/tests/test-remotefilelog-datapack.py +++ b/tests/test-remotefilelog-datapack.py @@ -292,7 +292,7 @@ class datapacktestsbase(object): 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)