From: Martin v. Löwis Date: Sun, 17 Jun 2012 08:42:02 +0000 (+0200) Subject: White space normalization. X-Git-Tag: v3.3.0b1~208 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1730139a51f81c434aacbfbbe347cdbbde04702b;p=thirdparty%2FPython%2Fcpython.git White space normalization. --- diff --git a/Lib/test/test_xml_etree_c.py b/Lib/test/test_xml_etree_c.py index 65b40d89f1f8..eaeeb56083e3 100644 --- a/Lib/test/test_xml_etree_c.py +++ b/Lib/test/test_xml_etree_c.py @@ -62,7 +62,7 @@ class SizeofTest(unittest.TestCase): def test_element_with_attrib(self): e = cET.Element('a', href='about:') - self.assertEqual(sys.getsizeof(e), + self.assertEqual(sys.getsizeof(e), self.elementsize + self.extra) def test_element_with_children(self): @@ -70,8 +70,8 @@ class SizeofTest(unittest.TestCase): for i in range(5): cET.SubElement(e, 'span') # should have space for 8 children now - self.assertEqual(sys.getsizeof(e), - self.elementsize + self.extra + + self.assertEqual(sys.getsizeof(e), + self.elementsize + self.extra + struct.calcsize('8P')) def test_main():