fix test now that staticmethod and classmethod are bigger
This commit is contained in:
parent
c135fa424e
commit
85c71ae882
|
@ -742,9 +742,9 @@ class SizeofTest(unittest.TestCase):
|
||||||
def bar(cls):
|
def bar(cls):
|
||||||
pass
|
pass
|
||||||
# staticmethod
|
# staticmethod
|
||||||
check(foo, size(h + 'P'))
|
check(foo, size(h + 'PP'))
|
||||||
# classmethod
|
# classmethod
|
||||||
check(bar, size(h + 'P'))
|
check(bar, size(h + 'PP'))
|
||||||
# generator
|
# generator
|
||||||
def get_gen(): yield 1
|
def get_gen(): yield 1
|
||||||
check(get_gen(), size(h + 'Pi2P'))
|
check(get_gen(), size(h + 'Pi2P'))
|
||||||
|
|
Loading…
Reference in New Issue