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 - zeep - DeprecationWarning : defusedxml.lxml is no longer supported and will be removed in a future release #1014

Closed
andreabisello opened this issue Oct 9, 2019 · 3 comments · Fixed by #1179

Comments

@andreabisello
Copy link

Python 3.7.4
Pytest 5.2.1
Zeep 3.2

code to reproduce

from zeep import Client

def test_number_to_words():
    client = Client('http://www.dataaccess.com/webservicesserver/numberconversion.wso?WSDL')
    assert client.service.NumberToWords(100) == "one hundred "

on execution result

============================== warnings summary ===============================
C:\Users\andreabisello\AppData\Local\Programs\Python\Python37-32\lib\site-packages\zeep\loader.py:3
  C:\Users\andreabisello\AppData\Local\Programs\Python\Python37-32\lib\site-packages\zeep\loader.py:3: DeprecationWarning: defusedxml.lxml is no longer supported and will be removed in a future release.
    from defusedxml.lxml import fromstring

-- Docs: https://docs.pytest.org/en/latest/warnings.html

the warning looks related to pytest, but about zeep.

due i want to use pytest and zeep in production environment, should i move to another test framework or another soap library?

thanks.

@andreabisello andreabisello changed the title DeprecationWarning : defusedxml.lxml is no longer supported and will be removed in a future release pytest - zeep - DeprecationWarning : defusedxml.lxml is no longer supported and will be removed in a future release Oct 9, 2019
@ShaheedHaque
Copy link

ShaheedHaque commented Oct 10, 2019

I'm seeing this deprecation warning filling our logs too. Also, this seems to be a dupe of #956.

@arjitkgupta
Copy link

arjitkgupta commented Sep 6, 2020

I am also getting the same error.

DeprecationWarning: defusedxml.lxml is no longer supported and will be removed in a future release.

Is this issue resolved and released ?

I am using below.
Python 3.6.1
pytest 5.4.2
zeep 3.4.0

@xmo-odoo
Copy link

xmo-odoo commented Sep 7, 2020

Considering there are 2 issues which are still open, 2 PRs have been closed without merging, and 3.4.0 is the latest release to date... do you really have to ask?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants