mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
gh-109599: Add types.CapsuleType (#109600)
--------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
This commit is contained in:
parent
bc06743533
commit
88a6137cdb
5 changed files with 21 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
import builtins
|
||||
import codecs
|
||||
import _datetime
|
||||
import gc
|
||||
import locale
|
||||
import operator
|
||||
|
@ -1581,7 +1582,7 @@ class SizeofTest(unittest.TestCase):
|
|||
x = property(getx, setx, delx, "")
|
||||
check(x, size('5Pi'))
|
||||
# PyCapsule
|
||||
# XXX
|
||||
check(_datetime.datetime_CAPI, size('6P'))
|
||||
# rangeiterator
|
||||
check(iter(range(1)), size('3l'))
|
||||
check(iter(range(2**65)), size('3P'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue