On 12 August 2014 16:11, Brian May <br...@microcomaustralia.com.au> wrote:

> I see this package is has python-modules-t...@lists.alioth.debian.org as
> an uploader. If no response, I will fix this bug and #751893 myself.
>
>
Ok, I have done the basics, however, the tests fail. Patch is attached.

I had to discard the patches in debian/patches, as the files didn't exist,
so assuming no longer required.

Note, it is possible the tests are failing. Exactly the same tests fail
0.13.1-2 too, but -e isn't set, so the errors don't abort the build. Not
sure this is a good thing.


# run tests
set -e; for py in 2.7 3.4; do  \
    for test in OpenSSL/test/test*; do \
        echo "running $test for python$py ..."; \
        PYTHONPATH=build/lib.linux-x86_64-$py python$py $test; \
        PYTHONPATH=`ls -d build/lib_d.*-$py || ls -d
build/lib.*-$py-pydebug` python$py-dbg $test; \
    done; \
done
running OpenSSL/test/test_crypto.py for python2.7 ...
................writing RSA key
....................................MAC verified OK
MAC verified OK
..MAC verified OK
MAC verified OK
MAC verified OK
MAC verified OK
MAC verified OK
MAC verified OK
MAC verified OK
MAC verified OK
MAC verified OK
...unable to write 'random state'
.......MAC verified OK
MAC verified OK
MAC verified OK
MAC verified OK
MAC verified OK
MAC verified OK
MAC verified OK
MAC verified OK
MAC verified OK
....................................................F.............................FEE....................................
======================================================================
ERROR: test_extension_count (__main__.X509Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "OpenSSL/test/test_crypto.py", line 1483, in test_extension_count
    c = self._extcert(pkey, [])
  File "OpenSSL/test/test_crypto.py", line 1468, in _extcert
    FILETYPE_PEM, dump_certificate(FILETYPE_PEM, cert))
  File "/«PKGBUILDDIR»/build/lib.linux-x86_64-2.7/OpenSSL/crypto.py", line
1219, in load_certificate
    _raise_current_error()
  File "/«PKGBUILDDIR»/build/lib.linux-x86_64-2.7/OpenSSL/_util.py", line
22, in exception_from_error_queue
    raise exceptionType(errors)
Error: [('asn1 encoding routines', 'c2i_ASN1_OBJECT', 'invalid object
encoding'), ('asn1 encoding routines', 'ASN1_TEMPLATE_NOEXP_D2I', 'nested
asn1 error'), ('asn1 encoding routines', 'ASN1_TEMPLATE_NOEXP_D2I', 'nested
asn1 error'), ('asn1 encoding routines', 'ASN1_TEMPLATE_NOEXP_D2I', 'nested
asn1 error'), ('PEM routines', 'PEM_ASN1_read_bio', 'ASN1 lib')]

======================================================================
ERROR: test_get_extension (__main__.X509Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "OpenSSL/test/test_crypto.py", line 1506, in test_get_extension
    cert = self._extcert(pkey, [ca, key, subjectAltName])
  File "OpenSSL/test/test_crypto.py", line 1468, in _extcert
    FILETYPE_PEM, dump_certificate(FILETYPE_PEM, cert))
  File "/«PKGBUILDDIR»/build/lib.linux-x86_64-2.7/OpenSSL/crypto.py", line
1219, in load_certificate
    _raise_current_error()
  File "/«PKGBUILDDIR»/build/lib.linux-x86_64-2.7/OpenSSL/_util.py", line
22, in exception_from_error_queue
    raise exceptionType(errors)
Error: [('asn1 encoding routines', 'c2i_ASN1_OBJECT', 'invalid object
encoding'), ('asn1 encoding routines', 'ASN1_TEMPLATE_NOEXP_D2I', 'nested
asn1 error'), ('asn1 encoding routines', 'ASN1_TEMPLATE_NOEXP_D2I', 'nested
asn1 error'), ('asn1 encoding routines', 'ASN1_TEMPLATE_NOEXP_D2I', 'nested
asn1 error'), ('PEM routines', 'PEM_ASN1_read_bio', 'ASN1 lib')]

======================================================================
FAIL: test_der (__main__.X509NameTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "OpenSSL/test/test_crypto.py", line 907, in test_der
    b('0\x1b1\x0b0\t\x06\x03U\x04\x06\x13\x02US'
AssertionError:
'0\x1b1\x0b0\t\x06\x03U\x04\x06\x13\x02US1\x0c0\n\x06\x03U\x04\x03\x0c\x03foo'
!=
'0\x1b1\x0b0\t\x06\x03U\x04\x06\x13\x02US1\x0c0\n\x06\x03U\x04\x03\x13\x03foo'

======================================================================
FAIL: test_digest (__main__.X509Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "OpenSSL/test/test_crypto.py", line 1454, in test_digest
    b("A8:EB:07:F8:53:25:0A:F2:56:05:C5:A5:C4:C4:C7:15"))
AssertionError: '6E:DB:AA:35:8C:39:8C:86:95:0E:D6:51:7E:42:FF:F4' !=
'A8:EB:07:F8:53:25:0A:F2:56:05:C5:A5:C4:C4:C7:15'

----------------------------------------------------------------------
Ran 185 tests in 0.769s

-- 
Brian May <br...@microcomaustralia.com.au>

Reply via email to