diff tests/test-heads.py @ 143:4359cabcb0cc

hglib: move string literals in the test code to util.b() (issue4520)
author Brett Cannon <brett@python.org>
date Mon, 09 Mar 2015 18:26:25 -0400
parents 2657fd6fef04
children c1b966866ed7
line wrap: on
line diff
--- a/tests/test-heads.py	Sun Mar 08 13:08:37 2015 -0400
+++ b/tests/test-heads.py	Mon Mar 09 18:26:25 2015 -0400
@@ -1,4 +1,5 @@
 import common
+from hglib.util import b
 
 class test_heads(common.basetest):
     def test_empty(self):
@@ -6,11 +7,11 @@
 
     def test_basic(self):
         self.append('a', 'a')
-        rev, node0 = self.client.commit('first', addremove=True)
+        rev, node0 = self.client.commit(b('first'), addremove=True)
         self.assertEquals(self.client.heads(), [self.client.tip()])
 
-        self.client.branch('foo')
+        self.client.branch(b('foo'))
         self.append('a', 'a')
-        rev, node1 = self.client.commit('second')
+        rev, node1 = self.client.commit(b('second'))
 
         self.assertEquals(self.client.heads(node0, topological=True), [])