Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 936321 - dev-python/pip-24.0 fails test when /tmp/test exists
Summary: dev-python/pip-24.0 fails test when /tmp/test exists
Status: UNCONFIRMED
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:
Depends on:
Blocks:
 
Reported: 2024-07-20 00:45 UTC by Jonathan Lovelace
Modified: 2024-07-23 16:15 UTC (History)
2 users (show)

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


Attachments
dev-python:pip-24.0:20240719-111137.log (dev-python:pip-24.0:20240719-111137.log,884.14 KB, text/plain; charset=utf-8)
2024-07-20 00:45 UTC, Jonathan Lovelace
Details
emerge-info.txt (emerge-info.txt,8.66 KB, text/plain; charset=utf-8)
2024-07-20 00:45 UTC, Jonathan Lovelace
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Lovelace 2024-07-20 00:45:21 UTC
Created attachment 898006 [details]
dev-python:pip-24.0:20240719-111137.log

While rebuilding as part of the final "emerge --emptytree @world" step of the profile-23.0 upgrade, =dev-python/pip-24.0 fails its test phase, specifically the test tests/unit/test_vcs.py::TestSubversionArgs::test_obtain. This test (and the whole test phase) passed without error when I rebuilt the package about a week ago as part of the Python 3.12 migration (first with tests disabled due to circular dependencies, then rebuilding with tests re-enabled); from the log output below, it looks like it's trying to interact with a directory in /tmp.

The test shortlog has a lot of SKIPPED and XFAIL lines, but the one for this test is:

FAILED tests/unit/test_vcs.py::TestSubversionArgs::test_obtain - OSError: pytest: reading from stdin while output is captured!  Consider using `-s`.

And the stdout and captured log from the test (omitting the backtrace that precedes them, for brevity):

---------------------------------------------------------------------------- Captured stdout call -----------------------------------------------------------------------------
What to do?  (i)gnore, (w)ipe, (b)ackup
------------------------------------------------------------------------------ Captured log call -------------------------------------------------------------------------------
WARNING  pip._internal.vcs.versioncontrol:versioncontrol.py:555 Directory /tmp/test already exists, and is not a svn checkout.
WARNING  pip._internal.vcs.versioncontrol:versioncontrol.py:564 The plan is to install the svn repository http://svn.example.com/
Comment 1 Jonathan Lovelace 2024-07-20 00:45:44 UTC
Created attachment 898007 [details]
emerge-info.txt
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-07-23 16:15:15 UTC
Could you report this upstream?  The test is obviously doing something stupid, but I don't have the energy to deal with such a corner case.