cffi_tests.embedding.test_basic.TestBasic:test_embedding_with_unicode
self = <extra_tests.cffi_tests.embedding.test_basic.TestBasic instance at 0x00007f9019b33d20>
def test_embedding_with_unicode(self):
withunicode_cffi = self.prepare_module('withunicode')
self.compile('add1-test', [withunicode_cffi])
> output = self.execute('add1-test')
../build/extra_tests/cffi_tests/embedding/test_basic.py:217:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <extra_tests.cffi_tests.embedding.test_basic.TestBasic instance at 0x00007f9019b33d20>
name = 'add1-test'
def execute(self, name):
path = self.get_path()
print('running %r in %r' % (name, path))
executable_name = name
if sys.platform == 'win32':
executable_name = os.path.join(path, executable_name + '.exe')
else:
executable_name = os.path.join('.', executable_name)
popen = self._run_base([executable_name], cwd=path,
stdout=subprocess.PIPE,
universal_newlines=True)
result, _ = popen.communicate()
err = popen.returncode
if err:
raise OSError("%r failed with exit code %r" % (
> os.path.join(path, executable_name), err))
E OSError: '/tmp/buildbot-x86_64/ffi-0/embedding/test_embedding_with_unicode/./add1-test' failed with exit code -6
../build/extra_tests/cffi_tests/embedding/test_basic.py:177: OSError
builder: pypy-c-jit-macos-x86-64 build #1279+
test: cffi_tests.embedding.test_basic.TestBasic:test_embedding_with_unicode