Skip to content

Fix DateTime numeric validation and range errors - #5848

Open
Erfouni wants to merge 1 commit into
robotframework:masterfrom
Erfouni:fix/datetime-numeric-inputs-5840
Open

Erfouni wants to merge 1 commit into
robotframework:masterfrom
Erfouni:fix/datetime-numeric-inputs-5840

Conversation

@Erfouni

@Erfouni Erfouni commented Nov 4, 2026

Copy link
Copy Markdown

DateTime now rejects infinity and NaN early and reports clear ValueError messages for numeric overflow and date range errors. Date calculations reuse the existing timedelta range check.

Added regression coverage. On Windows all 593 DateTime and argument conversion acceptance tests passed along with 2453 unit tests. One unit test was skipped.

A broader acceptance run hit 92 CLI failures in this checkout. All 92 also fail with identical messages on unchanged master. The full acceptance suite was not completed.

Fixes #5840.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DateTime: Large numbers, infinity and NaN are not handled properly

1 participant