-
-
Notifications
You must be signed in to change notification settings - Fork 541
Move time mocking from freezegun to time-machine #2407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thanks, Adam! @gaborbernat There was some discussion on Twitter, especially @pganssle had some concerns about time-machine. I think this needs a closer look, though a win of 0.1 s sounds pretty tempting :-) |
I don't think those concerns affect the tests here, which I think are freezing time purely to guarantee that all operations are seen as taking |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please a changelog for this otherwise looks alright
There aren't any other files in Also I tend to avoid adding release notes for internal-only changes. Users don't need to read about how tox's own test suite has changed. |
Related to this: there's some use of |
We don't have time-machine packaged in Fedora, so we "simply" tried removing all the decorators and the tests passed. What is the purpose of this dependency? |
I think the spinner tests elapsed field here tox/tests/util/test_spinner.py Line 16 in fd25b2b
|
It's faster :)
In this case, about 0.1 seconds are saved... there aren't that many tests using it.
Thanks for contribution
Please, make sure you address all the checklists (for details on how see
development documentation)!
tox -e fix_lint
)docs/changelog
folder