changeset 38070:fc3cca406b2e

py3: add b'' prefixes in tests/test-bugzilla.t # skip-blame because just b'' prefixes Differential Revision: https://phab.mercurial-scm.org/D3594
author Pulkit Goyal <7895pulkit@gmail.com>
date Sat, 19 May 2018 18:26:38 +0530
parents 5ba0cf22e4d0
children 6e713711331b
files tests/test-bugzilla.t
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-bugzilla.t	Sat May 19 18:25:18 2018 +0530
+++ b/tests/test-bugzilla.t	Sat May 19 18:26:38 2018 +0530
@@ -8,15 +8,15 @@
   > configtable = {}
   > configitem = registrar.configitem(configtable)
   > 
-  > configitem('bugzilla', 'mocklog',
+  > configitem(b'bugzilla', b'mocklog',
   >     default=None,
   > )
   > def extsetup(ui):
-  >     bugzilla = extensions.find('bugzilla')
+  >     bugzilla = extensions.find(b'bugzilla')
   >     class bzmock(bugzilla.bzaccess):
   >         def __init__(self, ui):
   >             super(bzmock, self).__init__(ui)
-  >             self._logfile = ui.config('bugzilla', 'mocklog')
+  >             self._logfile = ui.config(b'bugzilla', b'mocklog')
   >         def updatebug(self, bugid, newstate, text, committer):
   >             with open(self._logfile, 'a') as f:
   >                 f.write('update bugid=%r, newstate=%r, committer=%r\n'
@@ -26,7 +26,7 @@
   >             with open(self._logfile, 'a') as f:
   >                 f.write('notify bugs=%r, committer=%r\n'
   >                         % (bugs, committer))
-  >     bugzilla.bugzilla._versions['mock'] = bzmock
+  >     bugzilla.bugzilla._versions[b'mock'] = bzmock
   > EOF
 
 set up mock repository: