

def test_mktime(self):
    for t in ((- 2), (- 1), 0, 1):
        try:
            tt = time.localtime(t)
        except (OverflowError, OSError):
            pass
        else:
            self.assertEqual(time.mktime(tt), t)

dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_time.py TimeTestCase.test_mktime/original