Patchwork D3594: py3: add b'' prefixes in tests/test-bugzilla.t

login
register
mail settings
Submitter phabricator
Date May 19, 2018, 7:38 p.m.
Message ID <55844e14fbaecf8c4d37f031fad43523@localhost.localdomain>
Download mbox | patch
Permalink /patch/31715/
State Not Applicable
Headers show

Comments

phabricator - May 19, 2018, 7:38 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGfc3cca406b2e: py3: add b&#039;&#039; prefixes in tests/test-bugzilla.t (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3594?vs=8765&id=8799

REVISION DETAIL
  https://phab.mercurial-scm.org/D3594

AFFECTED FILES
  tests/test-bugzilla.t

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/tests/test-bugzilla.t b/tests/test-bugzilla.t
--- a/tests/test-bugzilla.t
+++ b/tests/test-bugzilla.t
@@ -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: