mirror of https://github.com/python/cpython
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):
|
||||
pass
|
||||
# staticmethod
|
||||
check(foo, size(h + 'P'))
|
||||
check(foo, size(h + 'PP'))
|
||||
# classmethod
|
||||
check(bar, size(h + 'P'))
|
||||
check(bar, size(h + 'PP'))
|
||||
# generator
|
||||
def get_gen(): yield 1
|
||||
check(get_gen(), size(h + 'Pi2P'))
|
||||
|
|
Loading…
Reference in New Issue