py3: use b'' in mockblackbox.py
authorGregory Szorc <gregory.szorc@gmail.com>
Sun, 11 Feb 2018 19:39:15 -0800
changeset 36105 f49c3ee5b02f
parent 36104 9b5df6e19a4f
child 36106 c33a99506e13
py3: use b'' in mockblackbox.py This unmasks a ton of other TypeError in blackbox code. # skip-blame since it's just a b prefix Differential Revision: https://phab.mercurial-scm.org/D2175
tests/mockblackbox.py
--- a/tests/mockblackbox.py	Mon Feb 12 15:08:15 2018 -0500
+++ b/tests/mockblackbox.py	Sun Feb 11 19:39:15 2018 -0800
@@ -5,7 +5,7 @@
 
 # XXX: we should probably offer a devel option to do this in blackbox directly
 def getuser():
-    return 'bob'
+    return b'bob'
 def getpid():
     return 5000