changeset 157:6564544576b9

tests: write out bytes instead of strings to test files (issue4520)
author Brett Cannon <brett@python.org>
date Wed, 25 Mar 2015 20:23:41 -0400
parents 6d273d0a51aa
children 2104fc9aa513
files tests/common.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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()