Commit 1605d6fb authored by Yuya Nishihara's avatar Yuya Nishihara

tests: get around py3 strings in

branch : stable
parent c303e5a2bdf4
Pipeline #8829 failed with stage
in 21 minutes and 5 seconds
......@@ -4,7 +4,10 @@ import os
from import *
import pytest
from mercurial import hg
from mercurial import (
node as nodemod,
from tortoisehg.util import hglib
import helpers
......@@ -54,5 +57,5 @@ def setup_repoid():
def test_repoid(reponame, rootrev):
repo = openrepo(reponame)
nodehex = _repoidnodes[rootrev]
assert_equal(nodehex[:12], hglib.shortrepoid(repo))
assert_equal(nodehex.decode('hex'), hglib.repoidnode(repo))
assert_equal(nodehex[:12].decode('ascii'), hglib.shortrepoid(repo))
assert_equal(nodemod.bin(nodehex), hglib.repoidnode(repo))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment