webclient tests broken on windows: setProxy fails

Bug #1061901 reported by Mike McCracken
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Single Sign On Client
Status tracked in Trunk
Stable-4-2
Fix Released
Undecided
Unassigned
Trunk
Fix Released
Undecided
Manuel de la Peña

Bug Description

with current trunk, I get this set of failues in the recently changed branch, on windows
assigning to mandel because that's his code :)

Traceback (most recent call last):
  File "c:\users\mmccrack\canonical\improve-buildout\scripts\devsetup\eggs\twisted-11.1.0-py2.7-win32.egg\twisted\internet\defer.py", line 1039, in _inlineCallbacks
    result = g.send(result)
  File "C:\Users\mmccrack\Canonical\improve-buildout\scripts\devsetup\parts\ubuntu-sso-client\ubuntu_sso\utils\webclient\tests\test_webclient.py", line 294, in
setUp
    self.wc = self.webclient_factory()
  File "C:\Users\mmccrack\Canonical\improve-buildout\scripts\devsetup\parts\ubuntu-sso-client\ubuntu_sso\utils\webclient\__init__.py", line 75, in webclient_factory
    return web_module.WebClient(*args, **kwargs)
  File "C:\Users\mmccrack\Canonical\improve-buildout\scripts\devsetup\parts\ubuntu-sso-client\ubuntu_sso\utils\webclient\qtnetwork.py", line 105, in __init__
    self.setup_proxy()
  File "C:\Users\mmccrack\Canonical\improve-buildout\scripts\devsetup\parts\ubuntu-sso-client\ubuntu_sso\utils\webclient\qtnetwork.py", line 132, in setup_proxy
    self._set_proxy(proxies[0])
  File "C:\Users\mmccrack\Canonical\improve-buildout\scripts\devsetup\parts\ubuntu-sso-client\ubuntu_sso\utils\webclient\qtnetwork.py", line 111, in _set_proxy
    self.nam.setProxy(proxy)
exceptions.TypeError: QNetworkAccessManager.setProxy(QNetworkProxy): first argument of unbound method must have type 'QNetworkAccessManager'

ubuntu_sso.utils.webclient.tests.test_webclient.WebClientTestCase.test_get_iri
ubuntu_sso.utils.webclient.tests.test_webclient.WebClientTestCase.test_get_iri_error
ubuntu_sso.utils.webclient.tests.test_webclient.WebClientTestCase.test_method_head
ubuntu_sso.utils.webclient.tests.test_webclient.WebClientTestCase.test_oauth_signing_uses_timestamp
ubuntu_sso.utils.webclient.tests.test_webclient.WebClientTestCase.test_post
ubuntu_sso.utils.webclient.tests.test_webclient.WebClientTestCase.test_post_with_args
ubuntu_sso.utils.webclient.tests.test_webclient.WebClientTestCase.test_request_is_oauth_signed
ubuntu_sso.utils.webclient.tests.test_webclient.WebClientTestCase.test_request_takes_an_iri
ubuntu_sso.utils.webclient.tests.test_webclient.WebClientTestCase.test_returned_content_are_bytes
ubuntu_sso.utils.webclient.tests.test_webclient.WebClientTestCase.test_send_basic_auth
ubuntu_sso.utils.webclient.tests.test_webclient.WebClientTestCase.test_send_basic_auth_wrong_credentials
ubuntu_sso.utils.webclient.tests.test_webclient.WebClientTestCase.test_send_extra_headers
ubuntu_sso.utils.webclient.tests.test_webclient.WebClientTestCase.test_unauthorized
ubuntu_sso.utils.webclient.tests.test_webclient.WebClientTestCase.test_webclienterror_not_string
ubuntu_sso.utils.webclient.tests.test_webclient.WebClientTestCase.test_zero_byte_in_content

Revision history for this message
Manuel de la Peña (mandel) wrote :

Does this happend in all platforms or just windows?

Mike McCracken (mikemc)
Changed in ubuntu-sso-client:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.