changeset 32912:ec9ed269edc3

py3: pass the path in hg.repository() as bytes This make test-ancestor.py pass on Python 3.
author Pulkit Goyal <7895pulkit@gmail.com>
date Sat, 17 Jun 2017 14:39:10 +0530
parents a8dfa35a4130
children 05c213cd8ab8
files contrib/python3-whitelist tests/test-ancestor.py
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/python3-whitelist	Sat Jun 17 14:38:02 2017 +0530
+++ b/contrib/python3-whitelist	Sat Jun 17 14:39:10 2017 +0530
@@ -1,3 +1,4 @@
+test-ancestor.py
 test-check-execute.t
 test-check-shbang.t
 test-contrib-check-code.t
--- a/tests/test-ancestor.py	Sat Jun 17 14:38:02 2017 +0530
+++ b/tests/test-ancestor.py	Sat Jun 17 14:39:10 2017 +0530
@@ -225,7 +225,7 @@
 def test_gca():
     u = uimod.ui.load()
     for i, dag in enumerate(dagtests):
-        repo = hg.repository(u, 'gca%d' % i, create=1)
+        repo = hg.repository(u, b'gca%d' % i, create=1)
         cl = repo.changelog
         if not util.safehasattr(cl.index, 'ancestors'):
             # C version not available