[pypy-issue] [issue1169] call to callableObj from unittest/case.py leads to error in httplib2 test

Ian Delaney tracker at bugs.pypy.org
Mon Jun 11 20:10:02 CEST 2012


New submission from Ian Delaney <della5 at iinet.com.au>:

fails in similar style in version 1.8 1.9.

package == httplib2-0.7.4.

testfile = python2/httplib2test.py

 * Testing of dev-python/httplib2-0.7.4 with CPython 2.6...
the python version == 2.6
/mnt/gen2/TmpDir/portage/dev-python/httplib2-0.7.4/work/httplib2-0.7.4/build-2.6/lib
/mnt/gen2/TmpDir/portage/dev-python/httplib2-0.7.4/work/httplib2-0.7.4
.......................................................................................................................
----------------------------------------------------------------------
Ran 119 tests in 93.145s

OK
 * Testing of dev-python/httplib2-0.7.4 with CPython 2.7...
the python version == 2.7
/mnt/gen2/TmpDir/portage/dev-python/httplib2-0.7.4/work/httplib2-0.7.4/build-2.7/lib
/mnt/gen2/TmpDir/portage/dev-python/httplib2-0.7.4/work/httplib2-0.7.4
.......................................................................................................................
----------------------------------------------------------------------
Ran 119 tests in 88.056s

OK
 * Testing of dev-python/httplib2-0.7.4 with PyPy 1.9 (Python 2.7)...
the python version == 1.9
/mnt/gen2/TmpDir/portage/dev-python/httplib2-0.7.4/work/httplib2-0.7.4/build-2.7-pypy-1.9/lib
/mnt/gen2/TmpDir/portage/dev-python/httplib2-0.7.4/work/httplib2-0.7.4
..............................................................................................E........................
======================================================================
ERROR: testSslCertValidation (__main__.HttpTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "../../python2/httplib2test.py", line 478, in testSslCertValidation
    http.request, "https://www.google.com/", "GET")
  File "/usr/lib64/pypy1.9/lib-python/2.7/unittest/case.py", line 471, in
assertRaises
    callableObj(*args, **kwargs)
  File
"/mnt/gen2/TmpDir/portage/dev-python/httplib2-0.7.4/work/httplib2-0.7.4/python2/httplib2/__init__.py",
line 1544, in request
    (response, content) = self._request(conn, authority, uri, request_uri,
method, body, headers, redirections, cachekey)
  File
"/mnt/gen2/TmpDir/portage/dev-python/httplib2-0.7.4/work/httplib2-0.7.4/python2/httplib2/__init__.py",
line 1294, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body,
headers)
  File
"/mnt/gen2/TmpDir/portage/dev-python/httplib2-0.7.4/work/httplib2-0.7.4/python2/httplib2/__init__.py",
line 1230, in _conn_request
    conn.connect()
  File
"/mnt/gen2/TmpDir/portage/dev-python/httplib2-0.7.4/work/httplib2-0.7.4/python2/httplib2/__init__.py",
line 1005, in connect
    raise SSLHandshakeError(e)
SSLHandshakeError: [Errno 1] error:02001002:system library:fopen:No such file or
directory

----------------------------------------------------------------------
Ran 119 tests in 88.034s

FAILED (errors=1)

so passes with Cpythons and just 1 test it fails in the testfile which I have
included

----------
assignedto: arigo
files: httplib2test.py
messages: 4420
nosy: arigo, idella5, pypy-issue
priority: performance bug
release: 1.9
status: chatting
title: call to callableObj from unittest/case.py leads to error in httplib2 test

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1169>
________________________________________


More information about the pypy-issue mailing list