#23792: Create contextmanager to freeze time.time() in tests
--------------------------------------+------------------------------------
Reporter: tchaumeny | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Testing framework | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Comment (by jezdez):
Someone proposed freezegun in the PR
(https://github.com/spulec/freezegun), which seems like the more complete
approach than this local monkey patch. So to me the question is whether we
accept the limitation of the context manager since it's a test utility but
should point at freezegun as well?
For formtools I'd like to follow whatever we decide for Django and then
backport it for versions that support older Djangos.
--
Ticket URL: <https://code.djangoproject.com/ticket/23792#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.a723524ce4153e14232b6588d6858ab9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.