9-digit fractional seconds should be truncated to 6.
()
| 55 | |
| 56 | |
| 57 | def test_parse_timestamp_extra_nanoseconds(): |
| 58 | """9-digit fractional seconds should be truncated to 6.""" |
| 59 | result = parse_timestamp("2025-01-15T10:30:00.123456789+0000") |
| 60 | assert result == datetime.datetime( |
| 61 | 2025, 1, 15, 10, 30, 0, 123456, tzinfo=datetime.timezone.utc |
| 62 | ) |
nothing calls this directly
no test coverage detected