QNetworkAccessManager.setProxy failing on Ubuntu

Bug #1090177 reported by dobey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Single Sign On Client
Status tracked in Trunk
Stable-4-0
Triaged
High
Unassigned
Stable-4-2
Fix Released
Critical
Unassigned
Trunk
Fix Released
Critical
dobey

Bug Description

With trunk and stable-4-2 branches landing on top of Ubuntu 13.04 now, the following tests have started failing in tarmac. These tests are also failing in the nightlies PPA builds of ubuntu-sso-client as well.

ERROR]
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1039, in _inlineCallbacks
    result = g.send(result)
  File "/build/buildd/ubuntu-sso-client-4.3+r1012/ubuntu_sso/utils/webclient/tests/test_webclient.py", line 578, in test_anonymous_proxy_is_used
    self.wc.force_use_proxy(settings)
  File "/build/buildd/ubuntu-sso-client-4.3+r1012/ubuntu_sso/utils/webclient/qtnetwork.py", line 258, in force_use_proxy
    self._set_proxy(proxy)
  File "/build/buildd/ubuntu-sso-client-4.3+r1012/ubuntu_sso/utils/webclient/qtnetwork.py", line 112, 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.BasicProxyTestCase.test_anonymous_proxy_is_used
===============================================================================
[ERROR]
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1039, in _inlineCallbacks
    result = g.send(result)
  File "/build/buildd/ubuntu-sso-client-4.3+r1012/ubuntu_sso/utils/webclient/tests/test_webclient.py", line 626, in test_auth_proxy_is_requested_creds_bad_details
    self.wc.force_use_proxy(wrong_settings)
  File "/build/buildd/ubuntu-sso-client-4.3+r1012/ubuntu_sso/utils/webclient/qtnetwork.py", line 258, in force_use_proxy
    self._set_proxy(proxy)
  File "/build/buildd/ubuntu-sso-client-4.3+r1012/ubuntu_sso/utils/webclient/qtnetwork.py", line 112, 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.BasicProxyTestCase.test_auth_proxy_is_requested_creds_bad_details
===============================================================================
[ERROR]
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1039, in _inlineCallbacks
    result = g.send(result)
  File "/build/buildd/ubuntu-sso-client-4.3+r1012/ubuntu_sso/utils/webclient/tests/test_webclient.py", line 674, in test_auth_proxy_is_requested_creds_bad_details_everywhere
    self.wc.force_use_proxy(wrong_settings)
  File "/build/buildd/ubuntu-sso-client-4.3+r1012/ubuntu_sso/utils/webclient/qtnetwork.py", line 258, in force_use_proxy
    self._set_proxy(proxy)
  File "/build/buildd/ubuntu-sso-client-4.3+r1012/ubuntu_sso/utils/webclient/qtnetwork.py", line 112, 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.BasicProxyTestCase.test_auth_proxy_is_requested_creds_bad_details_everywhere
===============================================================================
[ERROR]
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1039, in _inlineCallbacks
    result = g.send(result)
  File "/build/buildd/ubuntu-sso-client-4.3+r1012/ubuntu_sso/utils/webclient/tests/test_webclient.py", line 649, in test_auth_proxy_is_requested_creds_bad_details_user
    self.wc.force_use_proxy(partial_settings)
  File "/build/buildd/ubuntu-sso-client-4.3+r1012/ubuntu_sso/utils/webclient/qtnetwork.py", line 258, in force_use_proxy
    self._set_proxy(proxy)
  File "/build/buildd/ubuntu-sso-client-4.3+r1012/ubuntu_sso/utils/webclient/qtnetwork.py", line 112, 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.BasicProxyTestCase.test_auth_proxy_is_requested_creds_bad_details_user
===============================================================================
[ERROR]
Traceback (most recent call last):
  File "/build/buildd/ubuntu-sso-client-4.3+r1012/ubuntu_sso/utils/webclient/tests/test_webclient.py", line 690, in test_auth_proxy_is_requested_user_cancels
    self.wc.force_use_proxy(partial_settings)
  File "/build/buildd/ubuntu-sso-client-4.3+r1012/ubuntu_sso/utils/webclient/qtnetwork.py", line 258, in force_use_proxy
    self._set_proxy(proxy)
  File "/build/buildd/ubuntu-sso-client-4.3+r1012/ubuntu_sso/utils/webclient/qtnetwork.py", line 112, 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.BasicProxyTestCase.test_auth_proxy_is_requested_user_cancels
===============================================================================
[ERROR]
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1039, in _inlineCallbacks
    result = g.send(result)
  File "/build/buildd/ubuntu-sso-client-4.3+r1012/ubuntu_sso/utils/webclient/tests/test_webclient.py", line 605, in test_auth_proxy_is_used_creds_requested
    self.wc.force_use_proxy(partial_settings)
  File "/build/buildd/ubuntu-sso-client-4.3+r1012/ubuntu_sso/utils/webclient/qtnetwork.py", line 258, in force_use_proxy
    self._set_proxy(proxy)
  File "/build/buildd/ubuntu-sso-client-4.3+r1012/ubuntu_sso/utils/webclient/qtnetwork.py", line 112, 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.BasicProxyTestCase.test_auth_proxy_is_used_creds_requested
===============================================================================
[ERROR]
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1039, in _inlineCallbacks
    result = g.send(result)
  File "/build/buildd/ubuntu-sso-client-4.3+r1012/ubuntu_sso/utils/webclient/tests/test_webclient.py", line 586, in test_authenticated_proxy_is_used
    self.wc.force_use_proxy(settings)
  File "/build/buildd/ubuntu-sso-client-4.3+r1012/ubuntu_sso/utils/webclient/qtnetwork.py", line 258, in force_use_proxy
    self._set_proxy(proxy)
  File "/build/buildd/ubuntu-sso-client-4.3+r1012/ubuntu_sso/utils/webclient/qtnetwork.py", line 112, 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.BasicProxyTestCase.test_authenticated_proxy_is_used
===============================================================================
[ERROR]
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1039, in _inlineCallbacks
    result = g.send(result)
  File "/build/buildd/ubuntu-sso-client-4.3+r1012/ubuntu_sso/utils/webclient/tests/test_webclient.py", line 1153, in _assert_ssl_fail_user_accepts
    self.wc.force_use_proxy(proxy_settings)
  File "/build/buildd/ubuntu-sso-client-4.3+r1012/ubuntu_sso/utils/webclient/qtnetwork.py", line 258, in force_use_proxy
    self._set_proxy(proxy)
  File "/build/buildd/ubuntu-sso-client-4.3+r1012/ubuntu_sso/utils/webclient/qtnetwork.py", line 112, 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.SSLTestCase.test_ssl_fail_dialog_user_accepts_via_proxy

Related branches

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.