Attempt to fix object code printing problem due to unicode

This commit is contained in:
Siu Kwan Lam 2013-02-27 19:03:44 -06:00
commit 0cccb3dec9
4 changed files with 16 additions and 6 deletions

View file

@ -729,11 +729,7 @@ class TestNative(TestCase):
src = os.path.join(self.tmpdir, 'llvmobj.o')
with open(src, 'wb') as fout:
if is_py3k:
fout.write(output.encode('utf-8'))
else:
fout.write(output)
fout.write(output)
self._compile(src)