

def test_timespec(self):
    from _testcapi import pytime_object_to_timespec
    for (obj, timespec) in ((0, (0, 0)), ((- 1), ((- 1), 0)), ((- 1.0), ((- 1), 0)), (1e-09, (0, 1)), ((- 1e-09), ((- 1), 999999999)), ((- 1.2), ((- 2), 800000000)), (1.123456789, (1, 123456789)), (1.1234567899, (1, 123456789)), ((- 1.123456789), ((- 2), 876543211)), ((- 1.1234567891), ((- 2), 876543210))):
        self.assertEqual(pytime_object_to_timespec(obj), obj)
    for invalid in self.invalid_values:
        self.assertRaises(OverflowError, pytime_object_to_timespec, invalid)

dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_time.py TestPytime.test_timespec/VarMisuse@171/209 `timespec`->`obj`