# HG changeset patch # User Augie Fackler # Date 1528843775 14400 # Node ID 42f3a277c8dcaa49122aaa521ef0ce5c719bc7cb # Parent bec815f991b0f69fcefe49392062e7c51fdb0b2a tests: fix printenv script on Python 3 Differential Revision: https://phab.mercurial-scm.org/D3725 diff -r bec815f991b0 -r 42f3a277c8dc tests/printenv.py --- a/tests/printenv.py Tue Jun 12 18:49:22 2018 -0400 +++ b/tests/printenv.py Tue Jun 12 18:49:35 2018 -0400 @@ -26,6 +26,7 @@ exitcode = 0 out = sys.stdout +out = getattr(out, 'buffer', out) name = sys.argv[1] if len(sys.argv) > 2: