Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 925112 - dev-python/urllib3-2.2.1 fails tests: test/contrib/test_socks.py::TestSocks5Proxy::test_socket_timeout - AttributeError: 'TestSocks5Proxy' object has no attribute 'port'
Summary: dev-python/urllib3-2.2.1 fails tests: test/contrib/test_socks.py::TestSocks5P...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 923485
  Show dependency tree
 
Reported: 2024-02-20 23:37 UTC by matoro
Modified: 2024-03-07 15:59 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log and emerge --info (file_925112.txt,456.09 KB, text/plain)
2024-02-20 23:38 UTC, matoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matoro archtester 2024-02-20 23:37:58 UTC
Demo from amd64 to show that this affects all platforms.

================================================================== FAILURES ===================================================================
_____________________________________________________ TestSocks5Proxy.test_socket_timeout _____________________________________________________
[gw6] linux -- Python 3.11.7 /var/tmp/portage/dev-python/urllib3-2.2.1/work/urllib3-2.2.1-python3_11/install/usr/bin/python3.11

self = <test.contrib.test_socks.TestSocks5Proxy object at 0x71b92f38af10>
create_connection = <MagicMock name='create_connection' id='125040177031568'>

    @patch("socks.create_connection")
    def test_socket_timeout(self, create_connection: Mock) -> None:
        create_connection.side_effect = SocketTimeout()
>       proxy_url = f"socks5h://{self.host}:{self.port}"
E       AttributeError: 'TestSocks5Proxy' object has no attribute 'port'

create_connection = <MagicMock name='create_connection' id='125040177031568'>
self       = <test.contrib.test_socks.TestSocks5Proxy object at 0x71b92f38af10>

test/contrib/test_socks.py:369: AttributeError

Reproducible: Always
Comment 1 matoro archtester 2024-02-20 23:38:21 UTC
Created attachment 885555 [details]
build.log and emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2024-03-07 15:59:23 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d32fed0564892da1baa43b6fa1ccabd382c1e2f3

commit d32fed0564892da1baa43b6fa1ccabd382c1e2f3
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2024-03-07 15:58:14 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2024-03-07 15:59:20 +0000

    dev-python/urllib3: Deselect failing test
    
    Closes: https://bugs.gentoo.org/925112
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/urllib3/urllib3-2.2.1.ebuild | 2 ++
 1 file changed, 2 insertions(+)