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

login
register
mail settings
Submitter Yuya Nishihara
Date March 3, 2018, 1:27 p.m.
Message ID <0fd4e00b52b665037a69.1520083663@mimosa>
Download mbox | patch
Permalink /patch/28775/
State Accepted
Headers show

Comments

Yuya Nishihara - March 3, 2018, 1:27 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@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

Patch

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()