--- 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: