diff tests/common.py @ 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 1b47146a4a2c
children 8341f2494b3f
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()