# HG changeset patch # User Brett Cannon # Date 1427329421 14400 # Node ID 6564544576b9258287e789d7365def198ee861e6 # Parent 6d273d0a51aa24f9c837d67b656467f98f98786d tests: write out bytes instead of strings to test files (issue4520) diff -r 6d273d0a51aa -r 6564544576b9 tests/common.py --- a/tests/common.py Wed Mar 25 20:19:09 2015 -0400 +++ b/tests/common.py Wed Mar 25 20:23:41 2015 -0400 @@ -45,5 +45,5 @@ def append(self, path, *args): f = open(path, 'ab') for a in args: - f.write(str(a)) + f.write(a.encode('latin-1')) f.close()