We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
import _datetime
1 parent c881be5 commit c9fa18dCopy full SHA for c9fa18d
Lib/test/test_sys.py
@@ -1565,8 +1565,6 @@ def test_default(self):
1565
self.assertEqual(sys.getsizeof(True, -1), size('') + self.longdigit)
1566
1567
def test_objecttypes(self):
1568
- import _datetime
1569
-
1570
# check all types defined in Objects/
1571
calcsize = struct.calcsize
1572
size = test.support.calcobjsize
@@ -1743,6 +1741,7 @@ def delx(self): del self.__x
1743
1741
x = property(getx, setx, delx, "")
1744
1742
check(x, size('5Pi'))
1745
# PyCapsule
+ import _datetime
1746
check(_datetime.datetime_CAPI, size('6P'))
1747
# rangeiterator
1748
check(iter(range(1)), size('3l'))
0 commit comments