

def test_time_t(self):
    from _testcapi import pytime_object_to_time_t
    for (obj, time_t) in ((0, 0), ((- 1), (- 1)), ((- 1.0), (- 1)), ((- 1.9), (- 1)), (1.0, 1), (1.9, 1)):
        self.assertEqual(pytime_object_to_time_t(obj), time_t)
    for invalid in self.invalid_values:
        self.assertRaises(OverflowError, pytime_object_to_time_t, invalid)

dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_time.py TestPytime.test_time_t/original