running pytest /usr/lib/python3.10/site-packages/setuptools/command/easy_install.py:156: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools. warnings.warn( /usr/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( Searching for requests-toolbelt>=0.7.1 Reading https://pypi.org/simple/requests-toolbelt/ /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: toolbelt-0.1.0 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: toolbelt-0.1.1 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: toolbelt-0.1.2 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: toolbelt-0.2.0 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: toolbelt-0.3.0 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: toolbelt-0.3.1 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: toolbelt-0.4.0 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: toolbelt-0.5.0 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: toolbelt-0.5.1 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: toolbelt-0.6.0 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: toolbelt-0.6.1 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: toolbelt-0.6.2 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: toolbelt-0.7.0 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: toolbelt-0.7.1 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: toolbelt-0.8.0 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: toolbelt-0.9.0 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: toolbelt-0.9.1 is an invalid version and will not be supported in a future release warnings.warn( Downloading https://files.pythonhosted.org/packages/60/ef/7681134338fc097acef8d9b2f8abe0458e4d87559c689a8c306d0957ece5/requests_toolbelt-0.9.1-py2.py3-none-any.whl#sha256=380606e1d10dc85c3bd47bf5a6095f815ec007be7a8b69c878507068df059e6f Best match: requests-toolbelt 0.9.1 Processing requests_toolbelt-0.9.1-py2.py3-none-any.whl Installing requests_toolbelt-0.9.1-py2.py3-none-any.whl to /build/python-zeep/src/python-zeep-4.1.0/.eggs Installed /build/python-zeep/src/python-zeep-4.1.0/.eggs/requests_toolbelt-0.9.1-py3.10.egg Searching for cached-property>=1.3.0 Reading https://pypi.org/simple/cached-property/ /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: property-0.1.0 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: property-0.1.1 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: property-0.1.2 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: property-0.1.3 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: property-0.1.4 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: property-0.1.5 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: property-1.0.0 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: property-1.1.0 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: property-1.2.0 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: property-1.3.0 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: property-1.3.1 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: property-1.4.0 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: property-1.4.1 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: property-1.4.2 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: property-1.4.3 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: property-1.5.1 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: property-1.5.2 is an invalid version and will not be supported in a future release warnings.warn( Downloading https://files.pythonhosted.org/packages/48/19/f2090f7dad41e225c7f2326e4cfe6fff49e57dedb5b53636c9551f86b069/cached_property-1.5.2-py2.py3-none-any.whl#sha256=df4f613cf7ad9a588cc381aaf4a512d26265ecebd5eb9e1ba12f1319eb85a6a0 Best match: cached-property 1.5.2 Processing cached_property-1.5.2-py2.py3-none-any.whl Installing cached_property-1.5.2-py2.py3-none-any.whl to /build/python-zeep/src/python-zeep-4.1.0/.eggs Installed /build/python-zeep/src/python-zeep-4.1.0/.eggs/cached_property-1.5.2-py3.10.egg Searching for requests_mock>=0.7.0 Reading https://pypi.org/simple/requests_mock/ /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: mock-0.1.0 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: mock-0.2.0 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: mock-0.3.0 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: mock-0.4.0 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: mock-0.5.0 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: mock-0.5.1 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: mock-0.6.0 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: mock-0.7.0 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: mock-1.0.0 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: mock-1.1.0 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: mock-1.2.0 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: mock-1.3.0 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: mock-1.4.0 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: mock-1.5.0 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: mock-1.5.2 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: mock-1.6.0 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: mock-1.7.0 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: mock-1.8.0 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: mock-1.9.0 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: mock-1.9.1 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: mock-1.9.2 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: mock-1.9.3 is an invalid version and will not be supported in a future release warnings.warn( Downloading https://files.pythonhosted.org/packages/d7/50/1230e4524fc109727bb7eae4ba927d995270662b1270c259a246b5325ef7/requests_mock-1.9.3-py2.py3-none-any.whl#sha256=0a2d38a117c08bb78939ec163522976ad59a6b7fdd82b709e23bb98004a44970 Best match: requests-mock 1.9.3 Processing requests_mock-1.9.3-py2.py3-none-any.whl Installing requests_mock-1.9.3-py2.py3-none-any.whl to /build/python-zeep/src/python-zeep-4.1.0/.eggs Installed /build/python-zeep/src/python-zeep-4.1.0/.eggs/requests_mock-1.9.3-py3.10.egg Searching for pytest-httpx Reading https://pypi.org/simple/pytest-httpx/ Downloading https://files.pythonhosted.org/packages/0b/bb/56e0ba74e7001259d9b2313256d1bf7a42acaa4976def40b4406345e1b13/pytest_httpx-0.17.3-py3-none-any.whl#sha256=3c1db0d850ed92450aa7424467d1163776b0dc39c902d57450a9cb4a8847355c Best match: pytest-httpx 0.17.3 Processing pytest_httpx-0.17.3-py3-none-any.whl Installing pytest_httpx-0.17.3-py3-none-any.whl to /build/python-zeep/src/python-zeep-4.1.0/.eggs Installed /build/python-zeep/src/python-zeep-4.1.0/.eggs/pytest_httpx-0.17.3-py3.10.egg Searching for httpx==0.21.* Reading https://pypi.org/simple/httpx/ Downloading https://files.pythonhosted.org/packages/26/15/f7cf5aafef7cdc268422944bf426d4dd03d0c897a683fc01ea31dc053fa2/httpx-0.21.3-py3-none-any.whl#sha256=df9a0fd43fa79dbab411d83eb1ea6f7a525c96ad92e60c2d7f40388971b25777 Best match: httpx 0.21.3 Processing httpx-0.21.3-py3-none-any.whl Installing httpx-0.21.3-py3-none-any.whl to /build/python-zeep/src/python-zeep-4.1.0/.eggs Installed /build/python-zeep/src/python-zeep-4.1.0/.eggs/httpx-0.21.3-py3.10.egg Searching for tomli Reading https://pypi.org/simple/tomli/ Downloading https://files.pythonhosted.org/packages/e2/9f/5e1557a57a7282f066351086e78f87289a3446c47b2cb5b8b2f614d8fe99/tomli-2.0.0-py3-none-any.whl#sha256=b5bde28da1fed24b9bd1d4d2b8cba62300bfb4ec9a6187a957e8ddb9434c5224 Best match: tomli 2.0.0 Processing tomli-2.0.0-py3-none-any.whl Installing tomli-2.0.0-py3-none-any.whl to /build/python-zeep/src/python-zeep-4.1.0/.eggs Installed /build/python-zeep/src/python-zeep-4.1.0/.eggs/tomli-2.0.0-py3.10.egg running egg_info writing src/zeep.egg-info/PKG-INFO writing dependency_links to src/zeep.egg-info/dependency_links.txt writing requirements to src/zeep.egg-info/requires.txt writing top-level names to src/zeep.egg-info/top_level.txt reading manifest file 'src/zeep.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '__pycache__' found anywhere in distribution warning: no previously-included files matching '*.py[co]' found anywhere in distribution warning: no previously-included files matching '.DS_Store' found anywhere in distribution adding license file 'LICENSE' writing manifest file 'src/zeep.egg-info/SOURCES.txt' running build_ext ============================= test session starts ============================== platform linux -- Python 3.10.1, pytest-6.2.5, py-1.11.0, pluggy-0.13.1 rootdir: /build/python-zeep/src/python-zeep-4.1.0, configfile: pyproject.toml, testpaths: tests plugins: httpx-0.17.3, requests-mock-1.9.3, asyncio-0.16.0, cov-2.12.1, anyio-3.5.0 collected 486 items tests/test_async_client.py . [ 0%] tests/test_async_transport.py .FFF.. [ 1%] tests/test_cache.py ............ [ 3%] tests/test_client.py ...............s.... [ 8%] tests/test_client_factory.py ..... [ 9%] tests/test_helpers.py ..... [ 10%] tests/test_loader.py .. [ 10%] tests/test_main.py .. [ 10%] tests/test_pprint.py .. [ 11%] tests/test_response.py . [ 11%] tests/test_settings.py .. [ 11%] tests/test_soap_multiref.py .. [ 12%] tests/test_soap_xop.py ... [ 12%] tests/test_transports.py ....s. [ 14%] tests/test_wsa.py ..... [ 15%] tests/test_wsdl.py .................... [ 19%] tests/test_wsdl_arrays.py ......... [ 21%] tests/test_wsdl_messages_document.py ................... [ 25%] tests/test_wsdl_messages_http.py ....... [ 26%] tests/test_wsdl_messages_rpc.py ....... [ 27%] tests/test_wsdl_no_output_message_part.py . [ 28%] tests/test_wsdl_soap.py ............ [ 30%] tests/test_wsse_signature.py ............... [ 33%] tests/test_wsse_username.py ....... [ 35%] tests/test_wsse_utils.py . [ 35%] tests/test_xsd.py ................. [ 38%] tests/test_xsd_any.py .............. [ 41%] tests/test_xsd_attributes.py ............ [ 44%] tests/test_xsd_builtins.py ............................................. [ 53%] [ 53%] tests/test_xsd_complex_types.py ......... [ 55%] tests/test_xsd_element.py . [ 55%] tests/test_xsd_extension.py .............. [ 58%] tests/test_xsd_indicators_all.py .. [ 58%] tests/test_xsd_indicators_choice.py ............................... [ 65%] tests/test_xsd_indicators_group.py ............ [ 67%] tests/test_xsd_indicators_sequence.py ............. [ 70%] tests/test_xsd_integration.py ........................ [ 75%] tests/test_xsd_parse.py ............ [ 77%] tests/test_xsd_schemas.py ............................ [ 83%] tests/test_xsd_signatures.py ........ [ 85%] tests/test_xsd_simple_types.py ...... [ 86%] tests/test_xsd_types.py ............... [ 89%] tests/test_xsd_union.py .. [ 89%] tests/test_xsd_validation.py .. [ 90%] tests/test_xsd_valueobjects.py ..................... [ 94%] tests/test_xsd_visitor.py ...................... [ 99%] tests/integration/test_hello_world_recursive.py . [ 99%] tests/integration/test_http_post.py .. [ 99%] tests/integration/test_recursive_schema.py . [100%] =================================== FAILURES =================================== __________________________________ test_load ___________________________________ httpx_mock = @pytest.mark.requests def test_load(httpx_mock): cache = stub(get=lambda url: None, add=lambda url, content: None) transport = AsyncTransport(cache=cache) httpx_mock.add_response(url="http://tests.python-zeep.org/test.xml", data="x") result = transport.load("http://tests.python-zeep.org/test.xml") > assert result == b"x" E AssertionError: assert b'' == b'x' E Use -v to get the full diff tests/test_async_transport.py:26: AssertionError _______________________________ test_load_cache ________________________________ httpx_mock = @pytest.mark.requests @pytest.mark.asyncio def test_load_cache(httpx_mock): cache = InMemoryCache() transport = AsyncTransport(cache=cache) httpx_mock.add_response(url="http://tests.python-zeep.org/test.xml", data="x") result = transport.load("http://tests.python-zeep.org/test.xml") > assert result == b"x" E AssertionError: assert b'' == b'x' E Use -v to get the full diff tests/test_async_transport.py:37: AssertionError __________________________________ test_post ___________________________________ httpx_mock = @pytest.mark.requests @pytest.mark.asyncio async def test_post(httpx_mock: HTTPXMock): cache = stub(get=lambda url: None, add=lambda url, content: None) transport = AsyncTransport(cache=cache) envelope = etree.Element("Envelope") httpx_mock.add_response(url="http://tests.python-zeep.org/test.xml", data="x") result = await transport.post_xml( "http://tests.python-zeep.org/test.xml", envelope=envelope, headers={} ) > assert result.content == b"x" E AssertionError: assert b'' == b'x' E Use -v to get the full diff tests/test_async_transport.py:55: AssertionError =============================== warnings summary =============================== tests/conftest.py:23 /build/python-zeep/src/python-zeep-4.1.0/tests/conftest.py:23: PytestDeprecationWarning: @pytest.yield_fixture is deprecated. Use @pytest.fixture instead; they are the same. @pytest.yield_fixture() tests/test_wsdl.py:162 /build/python-zeep/src/python-zeep-4.1.0/tests/test_wsdl.py:162: DeprecationWarning: invalid escape sequence '\-' """ tests/test_xsd_union.py:50 /build/python-zeep/src/python-zeep-4.1.0/tests/test_xsd_union.py:50: DeprecationWarning: invalid escape sequence '\d' """ tests/test_async_transport.py::test_post /build/python-zeep/src/python-zeep-4.1.0/.eggs/httpx-0.21.3-py3.10.egg/httpx/_content.py:203: DeprecationWarning: Use 'content=<...>' to upload raw bytes/text content. warnings.warn(message, DeprecationWarning) tests/test_client.py::test_unknown_transport /build/python-zeep/src/python-zeep-4.1.0/.eggs/httpx-0.21.3-py3.10.egg/httpx/_client.py:2012: UserWarning: Unclosed . See https://www.python-httpx.org/async/#opening-and-closing-clients for details. warnings.warn( -- Docs: https://docs.pytest.org/en/stable/warnings.html =========================== short test summary info ============================ FAILED tests/test_async_transport.py::test_load - AssertionError: assert b'' ... FAILED tests/test_async_transport.py::test_load_cache - AssertionError: asser... FAILED tests/test_async_transport.py::test_post - AssertionError: assert b'' ... ============ 3 failed, 481 passed, 2 skipped, 5 warnings in 26.91s ============= ==> ERROR: A failure occurred in check().  Aborting...