cffi_tests.embedding.test_basic.TestBasic:test_empty
self = <extra_tests.cffi_tests.embedding.test_basic.TestBasic instance at 0x00007f9018c1a2e0>
def test_empty(self):
empty_cffi = self.prepare_module('empty')
self.compile('empty-test', [empty_cffi])
> output = self.execute('empty-test')
../build/extra_tests/cffi_tests/embedding/test_basic.py:185:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <extra_tests.cffi_tests.embedding.test_basic.TestBasic instance at 0x00007f9018c1a2e0>
name = 'empty-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_empty/./empty-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_empty