[pypy-commit] pypy py3.5: Fix this test, which might be confused by partially-initialized codecs
arigo
pypy.commits at gmail.com
Fri Sep 22 09:35:37 EDT 2017
Author: Armin Rigo <arigo at tunes.org>
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',
More information about the pypy-commit
mailing list