diff options
| author | Nick Pope <nick@nickpope.me.uk> | 2023-11-21 17:13:08 +0000 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-11-28 06:19:38 +0100 |
| commit | 6089230d3ec580f2f44e85f23962c14905fefcfd (patch) | |
| tree | eb243025bb58a778e16466fe96dac9dbc067bb95 /django/utils/autoreload.py | |
| parent | 0fcd72bc48eade21ce9202d7a71692f9b5a42bd2 (diff) | |
Refs #34986 -- Fixed mocking in utils_tests.test_http.HttpDateProcessingTests.test_parsing_rfc850.
Mocking in the `datetime` module can be tricky. In CPython the datetime
C module is used, but PyPy uses a pure Python implementation. This
caused issues with the prior approach to mocking `datetime.datetime`.
See https://docs.python.org/3/library/unittest.mock-examples.html#partial-mocking
Diffstat (limited to 'django/utils/autoreload.py')
0 files changed, 0 insertions, 0 deletions
