Author: Armin Rigo <[email protected]>
Branch: py3.5
Changeset: r92440:1dbe3599b597
Date: 2017-09-22 15:35 +0200
http://bitbucket.org/pypy/pypy/changeset/1dbe3599b597/
Log: Fix this test, which might be confused by partially-initialized
codecs
diff --git a/pypy/module/_cffi_backend/test/test_recompiler.py
b/pypy/module/_cffi_backend/test/test_recompiler.py
--- a/pypy/module/_cffi_backend/test/test_recompiler.py
+++ b/pypy/module/_cffi_backend/test/test_recompiler.py
@@ -928,8 +928,8 @@
def test_constant_of_value_unknown_to_the_compiler(self):
extra_c_source = self.udir + self.os_sep + (
'extra_test_constant_of_value_unknown_to_the_compiler.c')
- with open(extra_c_source, 'w') as f:
- f.write('const int external_foo = 42;\n')
+ with open(extra_c_source, 'wb') as f:
+ f.write(b'const int external_foo = 42;\n')
ffi, lib = self.prepare(
"const int external_foo;",
'test_constant_of_value_unknown_to_the_compiler',
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit