Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 916775 - dev-python/astroid-3.0.1 fails tests: "No module named 'urllib3.packages.six'"
Summary: dev-python/astroid-3.0.1 fails tests: "No module named 'urllib3.packages.six'"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2023-11-03 23:55 UTC by Jonathan Lovelace
Modified: 2023-11-06 06:22 UTC (History)
2 users (show)

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


Attachments
dev-python:astroid-3.0.1:20231103-171949.log (dev-python:astroid-3.0.1:20231103-171949.log,305.96 KB, text/plain; charset=utf-8)
2023-11-03 23:55 UTC, Jonathan Lovelace
Details
emerge-info.txt (emerge-info.txt,9.31 KB, text/plain; charset=utf-8)
2023-11-03 23:56 UTC, Jonathan Lovelace
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Lovelace 2023-11-03 23:55:31 UTC
Created attachment 873992 [details]
dev-python:astroid-3.0.1:20231103-171949.log

=dev-python/astroid-3.0.1 fails its test phase for me. Specifically, the test tests/test_modutils.py::test_file_info_from_modpath__SixMetaPathImporter fails with output ending:

---------------------------------------------
name = 'urllib3.packages.six.moves.http_client', package = None

>   ???
E   ModuleNotFoundError: No module named 'urllib3.packages.six'

fullname   = 'urllib3.packages.six.moves.http_client'
name       = 'urllib3.packages.six.moves.http_client'
package    = None
parent_name = 'urllib3.packages.six.moves'

<frozen importlib.util>:94: ModuleNotFoundError
-----------------------------------------

This test is marked to only run when the version of urllib3 is less than 2 because "Six is not backported anymore in urllib3 v2.0.0". As can be seen in my "emerge --info" output, I have dev-python/urllib3 installed at version 1.26.17; I can't currently upgrade to urllib3-2.0.6 because of dev-python/betamax. Maybe this removal was backported to some 1.26.x version?

dev-python/astroid-2.15.8-r1 passed its test phase on this machine last week; I don't know whether this test was added to astroid since then, some dependency has changed in an incompatible way, or something else entirely is causing the test faailure ...
Comment 1 Jonathan Lovelace 2023-11-03 23:56:02 UTC
Created attachment 873993 [details]
emerge-info.txt
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-11-06 05:18:44 UTC
Thanks for the report!  I see that the test is skipped with urllib3 >= 2, so I'm just going to deselect it.
Comment 3 Larry the Git Cow gentoo-dev 2023-11-06 06:22:35 UTC
The bug has been closed via the following commit(s):

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

commit 646b4f62ba05863e520f356166542f388b668f26
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2023-11-06 05:19:17 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2023-11-06 06:22:21 +0000

    dev-python/astroid: Deselect test requiring urllib3 w/ bundled six
    
    Closes: https://bugs.gentoo.org/916775
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/astroid/astroid-3.0.1.ebuild | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)