From 6f0f95d2535bba0947261937ad92e6da5cbbbdc7 Mon Sep 17 00:00:00 2001 From: Jean Raby Date: Tue, 17 Jul 2012 16:56:19 +0000 Subject: [PATCH] Use xml.etree.ElementTree.iselement() instead of some homegrown stuff that used a private class from xml.etree.ElementTree. Works with cElementTree Monotone-Parent: ed7f1623b0cb7e935297f6652b76074c1ff952df Monotone-Revision: 1bcd208d669189aec549aa4351b9d92a29c6d9b9 Monotone-Author: jraby@inverse.ca Monotone-Date: 2012-07-17T16:56:19 --- Tests/Integration/test-caldav-scheduling.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Tests/Integration/test-caldav-scheduling.py b/Tests/Integration/test-caldav-scheduling.py index 71eddac96..6b71077d0 100755 --- a/Tests/Integration/test-caldav-scheduling.py +++ b/Tests/Integration/test-caldav-scheduling.py @@ -60,10 +60,7 @@ class CalDAVPropertiesTest(unittest.TestCase): values = transp.getchildren() self.assertEquals(len(values), 1, "one and only one element expected") value = values[0] - self.assertTrue(isinstance(value, xml.etree.ElementTree._ElementInterface), - "schedule-calendar-transp must be an instance of" \ - " %s, not %s" - % ("_ElementInterface", transp.__class__.__name__)) + self.assertTrue(xml.etree.ElementTree.iselement(value)) ns = value.tag[0:31] tag = value.tag[31:] self.assertTrue(ns == "{urn:ietf:params:xml:ns:caldav}",