Skip to content

Correct the invalid randomized interval error message - #665

Open
hotcholula wants to merge 1 commit into
dbader:masterfrom
hotcholula:fix/interval-error-message
Open

hotcholula wants to merge 1 commit into
dbader:masterfrom
hotcholula:fix/interval-error-message

Conversation

@hotcholula

Copy link
Copy Markdown

schedule.every(5).to(3).seconds.do(job) raises an error saying that latest is greater than interval, although 3 is smaller than 5.

Correct the message and make the existing invalid-range test check it. The assertion fails before the fix.

Validation on Python 3.11 with pytest 8.3.5: all 81 tests pass, with 99% coverage. Black 20.8b1, mypy, and git diff --check pass. The documented --flake8 check reports existing lint failures on unchanged upstream too; those are outside this correction.

Codex helped with the fix and validation.

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.

1 participant