8000 silence a deprecation warning in tests · Issue #2776 · theupdateframework/python-tuf · GitHub
[go: up one dir, main page]

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

      0