mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
White space normalization.
This commit is contained in:
parent
bce166681c
commit
1730139a51
1 changed files with 3 additions and 3 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue