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

pytest reports warning for radicale/app/report.py #1515

Open
pbiering opened this issue Jun 9, 2024 · 0 comments
Open

pytest reports warning for radicale/app/report.py #1515

pbiering opened this issue Jun 9, 2024 · 0 comments

Comments

@pbiering
Copy link
Collaborator

pbiering commented Jun 9, 2024

Found:

radicale/app/report.py:74: DeprecationWarning: Testing an element's truth value will raise an exception in future versions.  Use specific 'len(elem)' or 'elem is not None' test instead.
    props: Union[ET.Element, List] = root.find(xmlutils.make_clark("D:prop")) or []

Can one support fixing this?

@pbiering pbiering added this to the 3.2.x milestone Jun 9, 2024
@pbiering pbiering changed the title pytest report warning for radicale/app/report.py pytest reports warning for radicale/app/report.py Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant