diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2012-06-17 08:42:02 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2012-06-17 08:42:02 (GMT) |
commit | 1730139a51f81c434aacbfbbe347cdbbde04702b (patch) | |
tree | 73eb9c883ea2a7c3516b116e408c54bfc1a42373 /Lib/test/test_xml_etree_c.py | |
parent | bce166681cf18cb2e6ce61c937acbe7e5fdfafae (diff) | |
download | cpython-1730139a51f81c434aacbfbbe347cdbbde04702b.zip cpython-1730139a51f81c434aacbfbbe347cdbbde04702b.tar.gz cpython-1730139a51f81c434aacbfbbe347cdbbde04702b.tar.bz2 |
White space normalization.
Diffstat (limited to 'Lib/test/test_xml_etree_c.py')
-rw-r--r-- | Lib/test/test_xml_etree_c.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_xml_etree_c.py b/Lib/test/test_xml_etree_c.py index 65b40d8..eaeeb56 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(): |