mirror of
https://github.com/python/cpython.git
synced 2026-06-06 03:26:18 -04:00
fix test now that staticmethod and classmethod are bigger
This commit is contained in:
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user