Mercurial > hg-stable
changeset 41488:e971952db109
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
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Wed, 30 Jan 2019 13:34:47 -0800 |
parents | 90b3898cf0db |
children | 30b762a330c8 |
files | tests/test-remotefilelog-datapack.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)