Issue #22116: C functions and methods (of the 'builtin_function_or_method' type) can now be weakref'ed. Patch by Wei Wu.

This commit is contained in:
Antoine Pitrou 2014-08-06 19:31:40 -04:00
parent f3440c6881
commit b349e4c929
7 changed files with 39 additions and 2 deletions

View file

@ -784,7 +784,7 @@ class SizeofTest(unittest.TestCase):
# buffer
# XXX
# builtin_function_or_method
check(len, size('3P')) # XXX check layout
check(len, size('4P')) # XXX check layout
# bytearray
samples = [b'', b'u'*100000]
for sample in samples: