diff -r 8591d6afc629 -r 2507bf180413 tests/test-ui-verbosity.py --- a/tests/test-ui-verbosity.py Sun Feb 18 18:20:57 2018 +0530 +++ b/tests/test-ui-verbosity.py Sun Feb 18 18:22:15 2018 +0530 @@ -2,9 +2,13 @@ import os from mercurial import ( + pycompat, ui as uimod, ) +if pycompat.ispy3: + xrange = range + hgrc = os.environ['HGRCPATH'] f = open(hgrc) basehgrc = f.read()