comparison tests/test-fastannotate-revmap.py @ 40946:5fd63bca43a4

py3: use pycompat.bytechr() instead of chr() in test-fastannotate-revmap.py This makes the test pass on Python 3. Differential Revision: https://phab.mercurial-scm.org/D5422
author Pulkit Goyal <pulkit@yandex-team.ru>
date Fri, 14 Dec 2018 19:30:20 +0300
parents aa95fd0257df
children 0fea133780bf
comparison
equal deleted inserted replaced
40945:ebc471ce9fad 40946:5fd63bca43a4
12 12
13 if pycompat.ispy3: 13 if pycompat.ispy3:
14 xrange = range 14 xrange = range
15 15
16 def genhsh(i): 16 def genhsh(i):
17 return chr(i) + b'\0' * 19 17 return pycompat.bytechr(i) + b'\0' * 19
18 18
19 def gettemppath(): 19 def gettemppath():
20 fd, path = tempfile.mkstemp() 20 fd, path = tempfile.mkstemp()
21 os.close(fd) 21 os.close(fd)
22 os.unlink(path) 22 os.unlink(path)