I just tried the run-on-pypy branch. It doesn't segfault pypy on import, but none of the tests pass.
elf@linux640:/tmp$ /opt/pypy-1.4/bin/pypy `which trial` OpenSSL.test.test_crypto
OpenSSL.test.test_crypto
FunctionTests
test_dump_certificate ... RPython traceback:
File "implement.c", line 199776, in _PyObject_New
File "implement.c", line 241951, in _PyObject_NewVar
File "implement.c", line 179834, in from_ref
File "implement_4.c", line 132364, in CpyTypedescr_type_realize
File "implement_1.c", line 44168, in type_realize
File "implement_1.c", line 123481, in W_PyCTypeObject___init__
File "implement.c", line 179783, in from_ref
Fatal RPython error: AssertionError
Aborted
elf@linux640:/tmp$ /opt/pypy-1.4/bin/pypy `which trial` OpenSSL.test.test_rand
OpenSSL.test.test_rand
RandTests
test_add ... [ERROR]
test_bytes ... [ERROR]
test_files ... [ERROR]
test_seed ... [ERROR]
test_status ... [ERROR]
===============================================================================
[ERROR]
Traceback (most recent call last):
File "/opt/pypy-latest/lib-python/2.5.2/unittest.py", line 270, in run
self.tearDown()
File "/opt/pypy-latest/site-packages/OpenSSL/test/util.py", line 37, in tearDown
_exception_from_error_queue()
OpenSSL.SSL.Error: []
OpenSSL.test.test_rand.RandTests.test_add
OpenSSL.test.test_rand.RandTests.test_bytes
OpenSSL.test.test_rand.RandTests.test_files
OpenSSL.test.test_rand.RandTests.test_seed
OpenSSL.test.test_rand.RandTests.test_status
-------------------------------------------------------------------------------
Ran 5 tests in 0.206s
I just tried the run-on-pypy branch. It doesn't segfault pypy on import, but none of the tests pass.
elf@linux640:/tmp$ /opt/pypy- 1.4/bin/ pypy `which trial` OpenSSL. test.test_ crypto test.test_ crypto dump_certificat e ... RPython traceback: type_realize ___init_ _ 1.4/bin/ pypy `which trial` OpenSSL. test.test_ rand test.test_ rand
OpenSSL.
FunctionTests
test_
File "implement.c", line 199776, in _PyObject_New
File "implement.c", line 241951, in _PyObject_NewVar
File "implement.c", line 179834, in from_ref
File "implement_4.c", line 132364, in CpyTypedescr_
File "implement_1.c", line 44168, in type_realize
File "implement_1.c", line 123481, in W_PyCTypeObject
File "implement.c", line 179783, in from_ref
Fatal RPython error: AssertionError
Aborted
elf@linux640:/tmp$ /opt/pypy-
OpenSSL.
RandTests
test_add ... [ERROR]
test_bytes ... [ERROR]
test_files ... [ERROR]
test_seed ... [ERROR]
test_status ... [ERROR]
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= == latest/ lib-python/ 2.5.2/unittest. py", line 270, in run latest/ site-packages/ OpenSSL/ test/util. py", line 37, in tearDown from_error_ queue()
[ERROR]
Traceback (most recent call last):
File "/opt/pypy-
self.tearDown()
File "/opt/pypy-
_exception_
OpenSSL.SSL.Error: []
OpenSSL. test.test_ rand.RandTests. test_add test.test_ rand.RandTests. test_bytes test.test_ rand.RandTests. test_files test.test_ rand.RandTests. test_seed test.test_ rand.RandTests. test_status ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- --
OpenSSL.
OpenSSL.
OpenSSL.
OpenSSL.
-------
Ran 5 tests in 0.206s
FAILED (errors=5) 1.4/bin/ pypy `which trial` OpenSSL. test.test_ ssl test.test_ ssl get_context ... [ERROR]
[ERROR] get_context_ wrong_args ... [ERROR]
[ERROR]
[ERROR] op_cookie_ exchange ... [ERROR] op_no_query_ mtu ... [ERROR] op_no_ticket ... [ERROR] add_extra_ chain_cert ... [ERROR]
[ERROR] add_extra_ chain_cert_ invalid_ cert ... [ERROR]
[ERROR] load_verify_ directory ... [ERROR]
[ERROR] load_verify_ file ... [ERROR]
[ERROR] load_verify_ invalid_ file ... [ERROR]
[ ERROR]
[ERROR] set_default_ verify_ paths ... [ERROR]
[ ERROR] set_default_ verify_ paths_signature ... [ERROR]
[ERROR] set_info_ callback ... [ERROR]
[ ERROR] set_passwd_ cb ... [ERROR]
[ERROR]
[ERROR] use_privatekey ... [ERROR]
[ERROR] add_client_ ca_errors ... [ERROR]
[ERROR] memoryConnect ... [ERROR]
[ERROR] multiple_ add_client_ ca ... [ERROR]
[ERROR] mutated_ ca_list ... [ERROR]
[ERROR] one_add_ client_ ca ... [ERROR]
[ ERROR] outgoingOverflo w ... Segmentation fault
elf@linux640:/tmp$ /opt/pypy-
OpenSSL.
ConnectionTests
test_
test_
test_type ... [ERROR]
ConstantsTests
test_
test_
test_
ContextTests
test_
test_
test_
test_
test_
test_method ... [ERROR]
test_
test_
test_
test_
test_type ... [ERROR]
test_
ErrorTests
test_type ... [ERROR]
MemoryBIOTests
test_
test_
test_
test_
test_
test_