Skip to content

silence a deprecation warning in tests #2776

@jku

Description

@jku

After #2762 we get a deprecation warning in tests:

/home/runner/work/python-tuf/python-tuf/.tox/py/lib/python3.13/site-packages/urllib3/_request_methods.py:182: DeprecationWarning: URLs without a scheme (ie 'https://') are deprecated and will raise an error in a future version of urllib3. To avoid this DeprecationWarning ensure all URLs start with 'https://' or 'http://'. Read more in this issue: urllib3/urllib3#2920

According to NicholasTanz tests in the code base were intentionally using no scheme/host to trigger error handling logic. Let's silence the warning somehow -- or possibly remove the schemeless test?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy