cpython: b9a3ed1b14b9 (original) (raw)

Mercurial > cpython

changeset 78260:b9a3ed1b14b9

MERGE: Better test for Issue #15402: Add a __sizeof__ method to struct.Struct [#15402]

Jesus Cea jcea@jcea.es
date Mon, 23 Jul 2012 18:16:18 +0200
parents 03063e718f5f(current diff)1911e192af0d(diff)
children 00db71b3c5bd
files Doc/ACKS.txt Lib/test/test_struct.py
diffstat 2 files changed, 5 insertions(+), 4 deletions(-)[+] [-] Doc/ACKS.txt 1 Lib/test/test_struct.py 8

line wrap: on

line diff

--- a/Doc/ACKS.txt +++ b/Doc/ACKS.txt @@ -205,6 +205,7 @@ docs@python.org), and we'll be glad to c * Anthony Starks * Greg Stein * Peter Stoehr

--- a/Lib/test/test_struct.py +++ b/Lib/test/test_struct.py @@ -575,12 +575,12 @@ class StructTest(unittest.TestCase): def test_sizeof(self): self.assertGreater(sys.getsizeof(struct.Struct('BHILfdspP')), sys.getsizeof(struct.Struct('B')))

def test_main(): run_unittest(StructTest)