Patchwork D3515: tests: port test-ui-verbosity.py to Python 3

login
register
mail settings
Submitter phabricator
Date May 10, 2018, 10:42 a.m.
Message ID <a3ec20a5283af92f6af2dc7b5ccb7719@localhost.localdomain>
Download mbox | patch
Permalink /patch/31447/
State Not Applicable
Headers show

Comments

phabricator - May 10, 2018, 10:42 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG76d0a343c305: tests: port test-ui-verbosity.py to Python 3 (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3515?vs=8589&id=8607

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

AFFECTED FILES
  contrib/python3-whitelist
  tests/test-ui-verbosity.py

CHANGE DETAILS




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

Patch

diff --git a/tests/test-ui-verbosity.py b/tests/test-ui-verbosity.py
--- a/tests/test-ui-verbosity.py
+++ b/tests/test-ui-verbosity.py
@@ -38,9 +38,9 @@ 
 
     u = uimod.ui.load()
     if cmd_quiet or cmd_debug or cmd_verbose:
-        u.setconfig('ui', 'quiet', str(bool(cmd_quiet)))
-        u.setconfig('ui', 'verbose', str(bool(cmd_verbose)))
-        u.setconfig('ui', 'debug', str(bool(cmd_debug)))
+        u.setconfig(b'ui', b'quiet', pycompat.bytestr(bool(cmd_quiet)))
+        u.setconfig(b'ui', b'verbose', pycompat.bytestr(bool(cmd_verbose)))
+        u.setconfig(b'ui', b'debug', pycompat.bytestr(bool(cmd_debug)))
 
     check = ''
     if u.debugflag:
diff --git a/contrib/python3-whitelist b/contrib/python3-whitelist
--- a/contrib/python3-whitelist
+++ b/contrib/python3-whitelist
@@ -451,6 +451,7 @@ 
 test-template-engine.t
 test-treemanifest.t
 test-ui-color.py
+test-ui-verbosity.py
 test-unamend.t
 test-uncommit.t
 test-unified-test.t