

def test_localtime_failure(self):
    invalid_time_t = None
    for time_t in ((- 1), (2 ** 30), (2 ** 33), (2 ** 60)):
        try:
            time.localtime(time_t)
        except OverflowError:
            self.skipTest('need 64-bit time_t')
        except OSError:
            invalid_time_t = time_t
            break
    if (invalid_time_t is None):
        self.skipTest('unable to find an invalid time_t value')
    time_t.assertRaises(OSError, time.localtime, invalid_time_t)
    self.assertRaises(OSError, time.ctime, invalid_time_t)

dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_time.py TimeTestCase.test_localtime_failure/VarMisuse@99/157 `self`->`time_t`