-
-
Notifications
You must be signed in to change notification settings - Fork 189
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
Use "non-strict" parsing for email.utils.getaddresses
#4021
Conversation
@petschki thanks for creating this Pull Request and helping to improve Plone! TL;DR: Finish pushing changes, pass all other checks, then paste a comment:
To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass, but it takes 30-60 min. Other CI checks are usually much faster and the Plone Jenkins resources are limited, so when done pushing changes and all other checks pass either start all Jenkins PR jobs yourself, or simply add the comment above in this PR to start all the jobs automatically. Happy hacking! |
61fc4d1
to
8243eb8
Compare
@jenkins-plone-org please run jobs |
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.
It sounds a bit weird: the test expects that "email\nemail" fails, which it does not, and you fix it by being less strict. I don't quite follow the logic, but I see locally that this fixes a test failure, also on Python 3.10.
Can be merged when green. |
in our case
|
python/cpython#102988 maybe this? From the tests in the python email package (python/cpython@2a9273a), I think the problem is the use of '\n' in the Plone test.
|
Update: I think we should update the email validation to follow the actual strict behavior. So inputs like python 3.11.10
python 3.11.5
What do you think? -> see #4023 |
What I still don't get is why these tests pass fine on Jenkins with the CMFPlone master branch, but locally they fail. Also, https://docs.python.org/3/library/email.utils.html says the "strict" parameter was introduced in 3.13. But the links you pointed to in issue #4020 already mention this in the release notes of 3.11 and 3.12. Ah, those are also notes for bug fix releases, they were not yet in the first final releases. Meanwhile locally I see that even the latest Python 3.8 has the "strict" parameter. So indeed the way to go is not to rely on |
Closing this PR in favour of #4023 |
fixes #4020