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 2012/10/01 03:24:56 UTC

svn commit: r1392157 - in /libcloud/trunk/libcloud: compute/drivers/vcloud.py test/compute/test_vcl.py

Author: tomaz
Date: Mon Oct  1 01:24:56 2012
New Revision: 1392157

URL: http://svn.apache.org/viewvc?rev=1392157&view=rev
Log:
Fix some of tests failures which happened in Python 3.3 due to changes in the
xmlrpc and xml.etree module. Part of LIBCLOUD-245

Modified:
    libcloud/trunk/libcloud/compute/drivers/vcloud.py
    libcloud/trunk/libcloud/test/compute/test_vcl.py

Modified: libcloud/trunk/libcloud/compute/drivers/vcloud.py
URL: http://svn.apache.org/viewvc/libcloud/trunk/libcloud/compute/drivers/vcloud.py?rev=1392157&r1=1392156&r2=1392157&view=diff
==============================================================================
--- libcloud/trunk/libcloud/compute/drivers/vcloud.py (original)
+++ libcloud/trunk/libcloud/compute/drivers/vcloud.py Mon Oct  1 01:24:56 2012
@@ -544,8 +544,7 @@ class VCloudNodeDriver(NodeDriver):
                 except Exception:
                     # The vApp was probably removed since the previous vDC query, ignore
                     e = sys.exc_info()[1]
-                    if not (isinstance(e.args[0], _ElementInterface) and
-                            e.args[0].tag.endswith('Error') and
+                    if not (e.args[0].tag.endswith('Error') and
                             e.args[0].get('minorErrorCode') == 'ACCESS_TO_RESOURCE_IS_FORBIDDEN'):
                         raise e
 

Modified: libcloud/trunk/libcloud/test/compute/test_vcl.py
URL: http://svn.apache.org/viewvc/libcloud/trunk/libcloud/test/compute/test_vcl.py?rev=1392157&r1=1392156&r2=1392157&view=diff
==============================================================================
--- libcloud/trunk/libcloud/test/compute/test_vcl.py (original)
+++ libcloud/trunk/libcloud/test/compute/test_vcl.py Mon Oct  1 01:24:56 2012
@@ -35,6 +35,7 @@ class MockVCLTransport(xmlrpclib.Transpo
         self._use_datetime = datetime
         self._connection = (None, None)
         self._extra_headers = []
+        self._use_builtin_types = False
 
     def request(self, host, handler, request_body, verbose=0):
         self.verbose = 0