(self)
| 1011 | _PyTime_FromSecondsObject(float('nan'), time_rnd) |
| 1012 | |
| 1013 | def test_AsSecondsDouble(self): |
| 1014 | from _testcapi import PyTime_AsSecondsDouble |
| 1015 | |
| 1016 | def float_converter(ns): |
| 1017 | if abs(ns) % SEC_TO_NS == 0: |
| 1018 | return float(ns // SEC_TO_NS) |
| 1019 | else: |
| 1020 | return float(ns) / SEC_TO_NS |
| 1021 | |
| 1022 | self.check_int_rounding(lambda ns, rnd: PyTime_AsSecondsDouble(ns), |
| 1023 | float_converter, |
| 1024 | NS_TO_SEC) |
| 1025 | |
| 1026 | def create_decimal_converter(self, denominator): |
| 1027 | denom = decimal.Decimal(denominator) |
nothing calls this directly
no test coverage detected