diff tests/test_unaffected_core.py @ 1570:d55c9d0ba350

tests: use scmutils.revsymbol instead of repo.__getitem__ for non-integers
author Paul Morelle <paul.morelle@octobus.net>
date Fri, 25 May 2018 11:52:03 +0200
parents 306187268f59
children af9a3156f8ae
line wrap: on
line diff
--- a/tests/test_unaffected_core.py
+++ b/tests/test_unaffected_core.py
@@ -10,6 +10,8 @@ from mercurial import hg
 from mercurial import node
 from mercurial import ui
 
+revsymbol = test_util.revsymbol
+
 def _dispatch(ui, cmd):
     assert '--quiet' in cmd
     try:
@@ -91,4 +93,4 @@ class TestMercurialCore(test_util.TestBa
 
         repo2 = hg.repository(ui, self.wc_path + '2')
 
-        self.assertEqual(repo[branch].hex(), repo2['.'].hex())
+        self.assertEqual(revsymbol(repo, branch).hex(), revsymbol(repo2, '.').hex())