diff tests/test-init.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 07efbd3bd09a
children c1b966866ed7
line wrap: on
line diff
--- a/tests/test-init.py	Sun Mar 08 13:08:37 2015 -0400
+++ b/tests/test-init.py	Mon Mar 09 18:26:25 2015 -0400
@@ -1,4 +1,5 @@
 import hglib, common, shutil
+from hglib.util import b
 
 class test_init(common.basetest):
     def test_exists(self):
@@ -10,4 +11,4 @@
         shutil.rmtree('.hg')
 
         self.client = hglib.init().open()
-        self.assertTrue(self.client.root().endswith('test_init'))
+        self.assertTrue(self.client.root().endswith(b('test_init')))