예제 #1
0
 def testPyTimeTooLarge(self):
     # We only do this special thing for python 3.x
     if not issubclass(pywintypes.TimeType, datetime.datetime):
         return
     MAX_TIMESTAMP = 0x7FFFFFFFFFFFFFFF # used by some API function to mean "never"
     ts = pywintypes.TimeStamp(MAX_TIMESTAMP)
     self.failUnlessEqual(ts, datetime.datetime.max)
예제 #2
0
 def testPyTimeTooLarge(self):
     MAX_TIMESTAMP = 0x7FFFFFFFFFFFFFFF  # used by some API function to mean "never"
     ts = pywintypes.TimeStamp(MAX_TIMESTAMP)
     self.assertEqual(ts, datetime.datetime.max)