Merge lp:~dobey/ubuntuone-dev-tools/twisted-regressed into lp:ubuntuone-dev-tools

Proposed by dobey
Status: Merged
Approved by: dobey
Approved revision: 107
Merged at revision: 107
Proposed branch: lp:~dobey/ubuntuone-dev-tools/twisted-regressed
Merge into: lp:ubuntuone-dev-tools
Diff against target: 40 lines (+7/-3)
2 files modified
ubuntuone/devtools/testcases/tests/test_squid_testcase.py (+5/-1)
ubuntuone/devtools/utils.py (+2/-2)
To merge this branch: bzr merge lp:~dobey/ubuntuone-dev-tools/twisted-regressed
Reviewer Review Type Date Requested Status
Mike McCracken (community) Approve
Review via email: mp+201250@code.launchpad.net

Commit message

New twisted breaks API, so update the code to deal with it.

To post a comment you must log in.
Revision history for this message
Mike McCracken (mikemc) wrote :

looks good, tests run for me on trusty

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'ubuntuone/devtools/testcases/tests/test_squid_testcase.py'
--- ubuntuone/devtools/testcases/tests/test_squid_testcase.py 2013-02-08 19:38:02 +0000
+++ ubuntuone/devtools/testcases/tests/test_squid_testcase.py 2014-01-10 20:05:28 +0000
@@ -35,6 +35,10 @@
35from ubuntuone.devtools.testcases import skipIfOS35from ubuntuone.devtools.testcases import skipIfOS
36from ubuntuone.devtools.testcases.squid import SquidTestCase36from ubuntuone.devtools.testcases.squid import SquidTestCase
3737
38try:
39 from urllib.parse import urlparse
40except ImportError:
41 from urlparse import urlparse
3842
39SAMPLE_RESOURCE = "<p>Hello World!</p>"43SAMPLE_RESOURCE = "<p>Hello World!</p>"
40SIMPLERESOURCE = "simpleresource"44SIMPLERESOURCE = "simpleresource"
@@ -82,7 +86,7 @@
8286
83 def _connect(self, url, contextFactory):87 def _connect(self, url, contextFactory):
84 """Perform the connection."""88 """Perform the connection."""
85 scheme, _, _, _ = client._parse(url)89 scheme, _, _, _, _, _ = urlparse(url)
86 # pylint: disable=E110190 # pylint: disable=E1101
87 if scheme == 'https':91 if scheme == 'https':
88 from twisted.internet import ssl92 from twisted.internet import ssl
8993
=== modified file 'ubuntuone/devtools/utils.py'
--- ubuntuone/devtools/utils.py 2012-08-13 15:18:00 +0000
+++ ubuntuone/devtools/utils.py 2014-01-10 20:05:28 +0000
@@ -135,10 +135,10 @@
135 for _arg in _args:135 for _arg in _args:
136 try:136 try:
137 if has_default:137 if has_default:
138 l_opt, s_opt, default, doc = unpack_padded(4, _arg)138 l_opt, s_opt, default, doc, _ = unpack_padded(5, _arg)
139 else:139 else:
140 default = False140 default = False
141 l_opt, s_opt, doc = unpack_padded(3, _arg)141 l_opt, s_opt, doc, _ = unpack_padded(4, _arg)
142 except ValueError:142 except ValueError:
143 raise ValueError('Failed to parse argument: %s' % _arg)143 raise ValueError('Failed to parse argument: %s' % _arg)
144 if not l_opt:144 if not l_opt:

Subscribers

People subscribed via source and target branches

to all changes: