예제 #1
0
 def testTimeFromTicks(self):
     if self.HAS_TZSET:
         val = pg8000.TimeFromTicks(1173804319)
         self.assertEqual(val, datetime.time(16, 45, 19))
예제 #2
0
def testTimeFromTicks(has_tzset):
    if has_tzset:
        val = pg8000.TimeFromTicks(1173804319)
        assert val == datetime.time(16, 45, 19)
예제 #3
0
    def testTimeFromTicks(self):
        if IS_JYTHON:
            return

        val = pg8000.TimeFromTicks(1173804319)
        self.assertEqual(val, datetime.time(16, 45, 19))