You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2013/08/08 15:23:15 UTC

[2/3] git commit: Fix test failure in Python 3.3 This test relied on the querystring ordering and didn't always fail. *sigh*

Fix test failure in Python 3.3 This test relied on the querystring ordering
and didn't always fail. *sigh*


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/069d0294
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/069d0294
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/069d0294

Branch: refs/heads/trunk
Commit: 069d029433b627e20572d823c8b2ca5c81e8ae64
Parents: 19884f3
Author: Tomaz Muraus <to...@apache.org>
Authored: Thu Aug 8 14:49:09 2013 +0200
Committer: Tomaz Muraus <to...@apache.org>
Committed: Thu Aug 8 14:49:09 2013 +0200

----------------------------------------------------------------------
 libcloud/test/compute/test_ec2.py | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/069d0294/libcloud/test/compute/test_ec2.py
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/test_ec2.py b/libcloud/test/compute/test_ec2.py
index e62b721..e4b5ae4 100644
--- a/libcloud/test/compute/test_ec2.py
+++ b/libcloud/test/compute/test_ec2.py
@@ -548,6 +548,8 @@ class EC2MockHttp(MockHttpTestCase):
         return (httplib.OK, body, {}, httplib.responses[httplib.OK])
 
     def _create_ex_blockdevicemappings_RunInstances(self, method, url, body, headers):
+        # Need to remove '/?'
+        url = url[2:]
         parameters = dict(parse_qsl(url))
         self.assertEqual(parameters['BlockDeviceMapping.1.DeviceName'],
                          '/dev/sda1')