Skip to content
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

Refs #34986 -- Fixed some test assertions for PyPy. #17536

Merged
merged 3 commits into from
Nov 28, 2023

Conversation

felixxm
Copy link
Member

@felixxm felixxm commented Nov 28, 2023

No description provided.

…ingTests.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
…d_arguments().

It seems that `sys._xoptions` is also supported on PyPy.
These failures were due to minor inconsistencies or implementation
differences between CPython and PyPy.
@felixxm felixxm merged commit baf705f into django:main Nov 28, 2023
33 of 34 checks passed
@felixxm felixxm deleted the pypy-tests branch November 28, 2023 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants