mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
fix test now that staticmethod and classmethod are bigger
This commit is contained in:
parent
c135fa424e
commit
85c71ae882
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue