diff tests/test-clone.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 a4fcece7dd8e
children c1b966866ed7
line wrap: on
line diff
--- a/tests/test-clone.py	Sun Mar 08 13:08:37 2015 -0400
+++ b/tests/test-clone.py	Mon Mar 09 18:26:25 2015 -0400
@@ -1,12 +1,13 @@
 import os
 import common
 import hglib
+from hglib.util import b
 
 class test_clone(common.basetest):
     def test_basic(self):
         self.append('a', 'a')
-        self.client.commit('first', addremove=True)
-        cloned = hglib.clone('.', 'cloned')
+        self.client.commit(b('first'), addremove=True)
+        cloned = hglib.clone(b('.'), b('cloned'))
         self.assertRaises(ValueError, cloned.log)
         cloned.open()
         self.assertEquals(self.client.log(), cloned.log())