Bug 248676 - net/py-urllib3: Update to 1.25.10
Summary: net/py-urllib3: Update to 1.25.10
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Danilo G. Baio
URL: https://github.com/urllib3/urllib3/bl...
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-15 22:21 UTC by Daniel Engberg
Modified: 2020-08-17 23:47 UTC (History)
1 user (show)

See Also:
dbaio: maintainer-feedback+


Attachments
Patch for urllib3 (1.88 KB, patch)
2020-08-15 22:21 UTC, Daniel Engberg
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Engberg freebsd_committer freebsd_triage 2020-08-15 22:21:00 UTC
Created attachment 217245 [details]
Patch for urllib3

Update (py-)urllib3 to 1.25.10
Fix "make test"

Tested on FreeBSD 13.0-CURRENT #0 r358620 (AMD64) (make test)
Poudriere OK 12.1-RELEASE (AMD64)

1.25.7 (fixed make test)

test/contrib/test_socks.py::TestSocks5Proxy::test_socks_with_invalid_password FAILED
test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_cross_protocol_redirect FAILED

=== 2 failed, 1139 passed, 175 skipped, 1 deselected, 129 warnings in 67.67 seconds ===

1.25.10

test/contrib/test_socks.py::TestSocks5Proxy::test_socks_with_invalid_password FAILED

=== 1 failed, 1159 passed, 195 skipped, 3 deselected, 47 warnings in 36.02 seconds ===

Full log:

___ TestSocks5Proxy.test_socks_with_invalid_password ___

self = <test.contrib.test_socks.TestSocks5Proxy object at 0x8036f4210>

    def test_socks_with_invalid_password(self):
        def request_handler(listener):
            sock = listener.accept()[0]

            handler = handle_socks5_negotiation(
                sock, negotiate=True, username=b"user", password=b"pass"
            )
            next(handler)

        self._start_server(request_handler)
        proxy_url = "socks5h://%s:%s" % (self.host, self.port)
        with socks.SOCKSProxyManager(
            proxy_url, username="user", password="badpass"
        ) as pm:
            with pytest.raises(NewConnectionError) as e:
                pm.request("GET", "http://example.com", retries=False)
>           assert "SOCKS5 authentication failed" in str(e.value)
E           AssertionError: assert 'SOCKS5 authentication failed' in '<urllib3.contrib.socks.SOCKSConnection object at 0x80460a4d0>: Failed to establish a new connection: [Errno 61] Connection refused'
E            +  where '<urllib3.contrib.socks.SOCKSConnection object at 0x80460a4d0>: Failed to establish a new connection: [Errno 61] Connection refused' = str(NewConnectionError('<urllib3.contrib.socks.SOCKSConnection object at 0x80460a4d0>: Failed to establish a new connection: [Errno 61] Connection refused'))
E            +    where NewConnectionError('<urllib3.contrib.socks.SOCKSConnection object at 0x80460a4d0>: Failed to establish a new connection: [Errno 61] Connection refused') = <ExceptionInfo NewConnectionError tblen=16>.value

test/contrib/test_socks.py:448: AssertionError
Comment 1 Danilo G. Baio freebsd_committer freebsd_triage 2020-08-17 23:34:33 UTC
make test: 1160 passed, 195 skipped, 3 deselected, 47 warnings in 42.13 second
I've built all consumers, seems fine.
Comment 2 commit-hook freebsd_committer freebsd_triage 2020-08-17 23:43:40 UTC
A commit references this bug:

Author: dbaio
Date: Mon Aug 17 23:42:58 UTC 2020
New revision: 545195
URL: https://svnweb.freebsd.org/changeset/ports/545195

Log:
  net/py-urllib3: Update to 1.25.10

  Changelog:	https://github.com/urllib3/urllib3/blob/1.25.10/CHANGES.rst

  PR:		248676
  Submitted by:	 daniel.engberg.lists@pyret.net

Changes:
  head/net/py-urllib3/Makefile
  head/net/py-urllib3/distinfo
Comment 3 Danilo G. Baio freebsd_committer freebsd_triage 2020-08-17 23:47:42 UTC
Committed, thanks!