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

Get rid of DeprecationWarnings during unit tests #1093

Merged
merged 2 commits into from
Jan 12, 2023

Conversation

dataflake
Copy link
Member

@dataflake dataflake commented Jan 11, 2023

See #1091 - Fixes at least those parts that are triggered by Zope itself.

Copy link
Contributor

@d-maurer d-maurer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am fine with your changes.

However, @icemac reported also a cgi.FieldStorage related deprecation warning. For it, https://peps.python.org/pep-0594/#cgi says

FieldStorage/MiniFieldStorage has no direct replacement, but can typically be replaced by
using [multipart](https://pypi.org/project/multipart/) (for POST and PUT requests)
or urllib.parse.parse_qsl (for GET and HEAD requests)

@dataflake
Copy link
Member Author

Yes, I know about the other warnings. My goal was not to fix everything, but all those that can be fixed in the time that I have available for these tasks.

Copy link
Member

@icemac icemac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your time investment. I like the changes but tried to ensure that the issue is not closed because this does not fix all deprecation warnings.

src/Zope2/App/tests/test_startup.py Show resolved Hide resolved
src/Testing/ZopeTestCase/testZopeTestCase.py Show resolved Hide resolved
@dataflake dataflake merged commit d19cbef into master Jan 12, 2023
@dataflake dataflake deleted the dataflake/fix_deprecations branch January 12, 2023 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants