[PATCH 10 of 11] py3: make test-ancestors.py pass on Python 3 with C extensions

Yuya Nishihara yuya at tcha.org
Sat Mar 3 08:27:43 EST 2018


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1520081960 18000
#      Sat Mar 03 07:59:20 2018 -0500
# Node ID 0fd4e00b52b665037a69d7204247f45447188335
# Parent  5e6c27a228b656f730cf0afd70e864ec96fc29c2
py3: make test-ancestors.py pass on Python 3 with C extensions

# skip-blame just some b prefixes

diff --git a/tests/test-ancestor.py b/tests/test-ancestor.py
--- a/tests/test-ancestor.py
+++ b/tests/test-ancestor.py
@@ -220,9 +220,9 @@ def test_lazyancestors():
 # DAGs that have been known to be problematic, and, optionally, known pairs
 # of revisions and their expected ancestor list.
 dagtests = [
-    ('+2*2*2/*3/2', {}),
-    ('+3*3/*2*2/*4*4/*4/2*4/2*2', {}),
-    ('+2*2*/2*4*/4*/3*2/4', {(6, 7): [3, 5]}),
+    (b'+2*2*2/*3/2', {}),
+    (b'+3*3/*2*2/*4*4/*4/2*4/2*2', {}),
+    (b'+2*2*/2*4*/4*/3*2/4', {(6, 7): [3, 5]}),
 ]
 def test_gca():
     u = uimod.ui.load()


More information about the Mercurial-devel mailing list