Patchwork D3725: tests: fix printenv script on Python 3

login
register
mail settings
Submitter phabricator
Date June 13, 2018, 12:37 p.m.
Message ID <8a9bb19aeda1ed71d93b93f57a97500a@localhost.localdomain>
Download mbox | patch
Permalink /patch/32109/
State Not Applicable
Headers show

Comments

phabricator - June 13, 2018, 12:37 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG42f3a277c8dc: tests: fix printenv script on Python 3 (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3725?vs=9037&id=9046

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

AFFECTED FILES
  tests/printenv.py

CHANGE DETAILS




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

Patch

diff --git a/tests/printenv.py b/tests/printenv.py
--- a/tests/printenv.py
+++ b/tests/printenv.py
@@ -26,6 +26,7 @@ 
 
 exitcode = 0
 out = sys.stdout
+out = getattr(out, 'buffer', out)
 
 name = sys.argv[1]
 if len(sys.argv) > 2: