Attempt to fix object code printing problem due to unicode
This commit is contained in:
parent
9df508f7c0
commit
0cccb3dec9
4 changed files with 16 additions and 6 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue