#23792: Create contextmanager to freeze time.time() in tests
--------------------------------------+------------------------------------
Reporter: tchaumeny | Owner: nobody
Type: Cleanup/optimization | Status: closed
Component: Testing framework | Version: master
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Comment (by timgraham):
Just to summarize the conclusions on the pull request, we decided that
adding freezegun as a dependency wasn't worth the two tests that could use
it. The `freeze_time()` context manager has some limitations but is fine
for Django's test suite and should be fine to use in formtools tests even
though we didn't make it a public API. I don't think the fact that we'd
like to use it their justifies bypassing our normal backport policy and
and adding it to 1.7 though.
--
Ticket URL: <https://code.djangoproject.com/ticket/23792#comment:8>
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.9f93cf7c58905612d49d578babc4f614%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.