Sourcing python-remove-tests-dir-hook Sourcing python-catch-conflicts-hook.sh Sourcing python-remove-bin-bytecode-hook.sh Sourcing pypa-build-hook Using pypaBuildPhase Sourcing python-runtime-deps-check-hook Using pythonRuntimeDepsCheckHook Sourcing pypa-install-hook Using pypaInstallPhase Sourcing python-imports-check-hook.sh Using pythonImportsCheckPhase Sourcing python-namespaces-hook Sourcing python-catch-conflicts-hook.sh Sourcing pytest-check-hook Using pytestCheckPhase Running phase: unpackPhase unpacking source archive /nix/store/b39brcci18464vilfcf3va4qcz5xafky-source source root is source setting SOURCE_DATE_EPOCH to timestamp 315619200 of file "source/tests/vcs/git/test_system.py" Running phase: patchPhase Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase no configure script, doing nothing Running phase: buildPhase Executing pypaBuildPhase Creating a wheel... pypa build flags: --no-isolation --outdir dist/ --wheel * Getting build dependencies for wheel... * Building wheel... Successfully built poetry-2.4.1-py3-none-any.whl Finished creating a wheel... /build/source/dist /build/source Unpacking to: unpacked/poetry-2.4.1...OK Repacking wheel as ./poetry-2.4.1-py3-none-any.whl...OK /build/source Finished executing pypaBuildPhase Running phase: pythonRuntimeDepsCheckHook Executing pythonRuntimeDepsCheck Checking runtime dependencies for poetry-2.4.1-py3-none-any.whl Finished executing pythonRuntimeDepsCheck Running phase: installPhase Executing pypaInstallPhase Successfully installed poetry-2.4.1-py3-none-any.whl Finished executing pypaInstallPhase Running phase: pythonOutputDistPhase Executing pythonOutputDistPhase Finished executing pythonOutputDistPhase Running phase: fixupPhase shrinking RPATHs of ELF executables and libraries in /nix/store/qlr0kcm6s4h8fkihwig07cpvfanmlrfi-python3.14-poetry-2.4.1 checking for references to /build/ in /nix/store/qlr0kcm6s4h8fkihwig07cpvfanmlrfi-python3.14-poetry-2.4.1... patching script interpreter paths in /nix/store/qlr0kcm6s4h8fkihwig07cpvfanmlrfi-python3.14-poetry-2.4.1 stripping (with command strip and flags -S -p) in /nix/store/qlr0kcm6s4h8fkihwig07cpvfanmlrfi-python3.14-poetry-2.4.1/lib /nix/store/qlr0kcm6s4h8fkihwig07cpvfanmlrfi-python3.14-poetry-2.4.1/bin shrinking RPATHs of ELF executables and libraries in /nix/store/9yn8cnz7vwrrr0vz3kim2jl3l7389wk3-python3.14-poetry-2.4.1-dist checking for references to /build/ in /nix/store/9yn8cnz7vwrrr0vz3kim2jl3l7389wk3-python3.14-poetry-2.4.1-dist... patching script interpreter paths in /nix/store/9yn8cnz7vwrrr0vz3kim2jl3l7389wk3-python3.14-poetry-2.4.1-dist Rewriting #!/nix/store/rgnappqqc5vbq60gza5fflyk84sylwl6-python3-3.14.6/bin/python3.14 to #!/nix/store/rgnappqqc5vbq60gza5fflyk84sylwl6-python3-3.14.6 wrapping `/nix/store/qlr0kcm6s4h8fkihwig07cpvfanmlrfi-python3.14-poetry-2.4.1/bin/poetry'... Executing pythonRemoveTestsDir Finished executing pythonRemoveTestsDir Executing pythonNamespacesHook Enforcing PEP420 namespace: poetry Finished executing pythonNamespacesHook Running phase: installCheckPhase no Makefile or custom installCheckPhase, doing nothing Running phase: pythonCatchConflictsPhase Running phase: pythonRemoveBinBytecodePhase Running phase: pythonImportsCheckPhase Executing pythonImportsCheckPhase Running phase: pytestCheckPhase Executing pytestCheckPhase pytest flags: -m pytest -k not\ \(test_builder_should_execute_build_scripts\)\ and\ not\ \(test_env_system_packages_are_relative_to_lib\)\ and\ not\ \(test_install_warning_corrupt_root\)\ and\ not\ \(test_no_additional_output_in_verbose_mode\)\ and\ not\ \(test_project_plugins_are_installed_in_project_folder\)\ and\ not\ \(test_application_command_not_found_messages\)\ and\ not\ \(test_list_poetry_managed\)\ and\ not\ \(test_list_poetry_managed\)\ and\ not\ \(test_find_all_with_poetry_managed\)\ and\ not\ \(test_find_poetry_managed_pythons\)\ and\ not\ \(test_threading_property_types\)\ and\ not\ \(test_threading_single_thread_safe\)\ and\ not\ \(test_threading_property_caching\)\ and\ not\ \(test_threading_atomic_cached_property_different_instances\) -m not\ \(network\) --numprocesses=4 ============================= test session starts ============================== platform linux -- Python 3.14.6, pytest-9.1.1, pluggy-1.6.0 rootdir: /build/source configfile: pyproject.toml testpaths: tests plugins: mock-3.15.1, xdist-3.8.0, anyio-4.14.2 4 workers [3114 items] m ........................................................................ [ 2%] ........................................................................ [ 4%] ......................................................sss............... [ 6%] ........................................................................ [ 9%] ........................................................................ [ 11%] ..........................s............................................. [ 13%] ........................................................................ [ 16%] ..........................................................s............. [ 18%] ........................................................................ [ 20%] .....................................s.................................. [ 23%] ........................................................................ [ 25%] ........................................................................ [ 27%] ........................................................................ [ 30%] .......................F..........................F...Fs................ [ 32%] ........................................................................ [ 34%] ........................................................................ [ 36%] ........................................................................ [ 39%] ........................................................................ [ 41%] ........................................................................ [ 43%] ........................................................................ [ 46%] ........................................................................ [ 48%] ........................................................................ [ 50%] ........................................................................ [ 53%] ........................................................................ [ 55%] ........................................................................ [ 57%] ........................................................................ [ 60%] ........................................................................ [ 62%] ........................................................................ [ 64%] ........................................................................ [ 67%] ........................................................................ [ 69%] ........................................................................ [ 71%] ........................................................................ [ 73%] ........................................................................ [ 76%] ........................................................................ [ 78%] ........................................................................ [ 80%] ........................................................................ [ 83%] ........................................................................ [ 85%] ........................................................................ [ 87%] ........................................................................ [ 90%] ................................................................sssss.ss [ 92%] ssssssssssss............................................................ [ 94%] ........................................................................ [ 97%] ......................s...............s................................. [ 99%] .....ssss......... [100%] =================================== FAILURES =================================== _________________ test_execute_executes_a_batch_of_operations __________________ [gw0] linux -- Python 3.14.6 /nix/store/rgnappqqc5vbq60gza5fflyk84sylwl6-python3-3.14.6/bin/python3.14 mocker = config = pool = io = tmp_path = PosixPath('/build/pytest-of-nixbld/pytest-0/popen-gw0/test_execute_executes_a_batch_0') env = MockEnv("/build/pytest-of-nixbld/pytest-0/popen-gw0/test_execute_executes_a_batch_0/.venv") copy_wheel = ._copy_wheel at 0x7fffee012140> fixture_dir = ._fixture_dir at 0x7fffed736090> def test_execute_executes_a_batch_of_operations( mocker: MockerFixture, config: Config, pool: RepositoryPool, io: BufferedIO, tmp_path: Path, env: MockEnv, copy_wheel: Callable[[], Path], fixture_dir: FixtureDirGetter, ) -> None: wheel_install = mocker.patch.object(WheelInstaller, "install") config.merge({"cache-dir": str(tmp_path)}) artifact_cache = ArtifactCache(cache_dir=config.artifacts_cache_directory) prepare_spy = mocker.spy(Chef, "_prepare") chef = Chef(artifact_cache, env, Factory.create_pool(config)) chef.set_directory_wheel([copy_wheel(), copy_wheel()]) chef.set_sdist_wheel(copy_wheel()) io.set_verbosity(Verbosity.VERY_VERBOSE) executor = Executor(env, pool, config, io) executor._chef = chef file_package = Package( "demo", "0.1.0", source_type="file", source_url=(fixture_dir("distributions") / "demo-0.1.0-py2.py3-none-any.whl") .resolve() .as_posix(), ) directory_package = Package( "simple-project", "1.2.3", source_type="directory", source_url=fixture_dir("simple_project").resolve().as_posix(), ) git_package = Package( "demo", "0.1.0", source_type="git", source_reference="master", source_url="https://github.com/demo/demo.git", develop=True, ) return_code = executor.execute( [ Install(Package("pytest", "3.5.1")), Uninstall(Package("attrs", "17.4.0")), Update(Package("requests", "2.18.3"), Package("requests", "2.18.4")), Update(Package("pytest", "3.5.1"), Package("pytest", "3.5.0")), Uninstall(Package("clikit", "0.2.3")).skip("Not currently installed"), Install(file_package), Install(directory_package), Install(git_package), ] ) expected = f""" Package operations: 4 installs, 2 updates, 1 removal - Installing pytest (3.5.1) - Removing attrs (17.4.0) - Updating requests (2.18.3 -> 2.18.4) - Downgrading pytest (3.5.1 -> 3.5.0) - Installing demo (0.1.0 {file_package.source_url}) - Installing simple-project (1.2.3 {directory_package.source_url}) - Installing demo (0.1.0 master) """ expected_lines = set(expected.splitlines()) output_lines = set(io.fetch_output().splitlines()) > assert output_lines == expected_lines E assert {'', ' ...ackage)', ...} == {'', ' - Dow...roject)', ...} E E Extra items in the left set: E ' self._env.run_pip(*args, **kwargs)' E ' result: int = getattr(self, f"_execute_{method}")(operation)' E ' 1 /nix/store/qlr0kcm6s4h8fkihwig07cpvfanmlrfi-python3.14-poetry-2.4.1/lib/python3.14/site-packages/poetry/utils/env/base_env.py:174 in pip_embedded' E ' 164│ wheel = get_embed_wheel(' E ' at /nix/store/qlr0kcm6s4h8fkihwig07cpvfanmlrfi-python3.14-poetry-2.4.1/lib/python3.14/site-packages/poetry/utils/env/base_env.py:168 in get_embedded_wheel'... E E ...Full output truncated (32 lines hidden), use '-vv' to show /build/source/tests/installation/test_executor.py:270: AssertionError ______ test_execute_prints_warning_for_yanked_package[operations1-False] _______ [gw0] linux -- Python 3.14.6 /nix/store/rgnappqqc5vbq60gza5fflyk84sylwl6-python3-3.14.6/bin/python3.14 config = pool = io = tmp_path = PosixPath('/build/pytest-of-nixbld/pytest-0/popen-gw0/test_execute_prints_warning_fo1') env = MockEnv("/build/pytest-of-nixbld/pytest-0/popen-gw0/test_execute_prints_warning_fo1/.venv") operations = [, ] has_warning = False @pytest.mark.parametrize( "operations, has_warning", [ ( [Install(Package("black", "21.11b0")), Install(Package("pytest", "3.5.1"))], True, ), ( [ Uninstall(Package("black", "21.11b0")), Uninstall(Package("pytest", "3.5.1")), ], False, ), ( [ Update(Package("black", "19.10b0"), Package("black", "21.11b0")), Update(Package("pytest", "3.5.0"), Package("pytest", "3.5.1")), ], True, ), ], ) def test_execute_prints_warning_for_yanked_package( config: Config, pool: RepositoryPool, io: BufferedIO, tmp_path: Path, env: MockEnv, operations: list[Operation], has_warning: bool, ) -> None: config.merge({"cache-dir": str(tmp_path)}) executor = Executor(env, pool, config, io) return_code = executor.execute(operations) expected = ( "Warning: The file chosen for install of black 21.11b0 " "(black-21.11b0-py3-none-any.whl) is yanked. Reason for being yanked: " "Broken regex dependency. Use 21.11b1 instead." ) output = io.fetch_output() error = io.fetch_error() > assert return_code == 0, f"\noutput: {output}\nerror: {error}\n" E AssertionError: E output: E Package operations: 0 installs, 0 updates, 2 removals E E - Removing black (21.11b0) E E RuntimeError E E embedded pip wheel not found E E at /nix/store/qlr0kcm6s4h8fkihwig07cpvfanmlrfi-python3.14-poetry-2.4.1/lib/python3.14/site-packages/poetry/utils/env/base_env.py:168 in get_embedded_wheel E 164│ wheel = get_embed_wheel( E 165│ distribution, f"{self.version_info[0]}.{self.version_info[1]}" E 166│ ) E 167│ if wheel is None: E → 168│ raise RuntimeError(f"embedded {distribution} wheel not found") E 169│ return wheel.path E 170│ E 171│ @property E 172│ def pip_embedded(self) -> Path: E E Cannot install black. E E E error: E E assert 1 == 0 /build/source/tests/installation/test_executor.py:496: AssertionError _______ test_execute_prints_warning_for_yanked_package[operations2-True] _______ [gw0] linux -- Python 3.14.6 /nix/store/rgnappqqc5vbq60gza5fflyk84sylwl6-python3-3.14.6/bin/python3.14 config = pool = io = tmp_path = PosixPath('/build/pytest-of-nixbld/pytest-0/popen-gw0/test_execute_prints_warning_fo2') env = MockEnv("/build/pytest-of-nixbld/pytest-0/popen-gw0/test_execute_prints_warning_fo2/.venv") operations = [, ] has_warning = True @pytest.mark.parametrize( "operations, has_warning", [ ( [Install(Package("black", "21.11b0")), Install(Package("pytest", "3.5.1"))], True, ), ( [ Uninstall(Package("black", "21.11b0")), Uninstall(Package("pytest", "3.5.1")), ], False, ), ( [ Update(Package("black", "19.10b0"), Package("black", "21.11b0")), Update(Package("pytest", "3.5.0"), Package("pytest", "3.5.1")), ], True, ), ], ) def test_execute_prints_warning_for_yanked_package( config: Config, pool: RepositoryPool, io: BufferedIO, tmp_path: Path, env: MockEnv, operations: list[Operation], has_warning: bool, ) -> None: config.merge({"cache-dir": str(tmp_path)}) executor = Executor(env, pool, config, io) return_code = executor.execute(operations) expected = ( "Warning: The file chosen for install of black 21.11b0 " "(black-21.11b0-py3-none-any.whl) is yanked. Reason for being yanked: " "Broken regex dependency. Use 21.11b1 instead." ) output = io.fetch_output() error = io.fetch_error() > assert return_code == 0, f"\noutput: {output}\nerror: {error}\n" E AssertionError: E output: E Package operations: 0 installs, 2 updates, 0 removals E E - Updating black (19.10b0 -> 21.11b0) E - Updating pytest (3.5.0 -> 3.5.1) E E RuntimeError E E embedded pip wheel not found E E at /nix/store/qlr0kcm6s4h8fkihwig07cpvfanmlrfi-python3.14-poetry-2.4.1/lib/python3.14/site-packages/poetry/utils/env/base_env.py:168 in get_embedded_wheel E 164│ wheel = get_embed_wheel( E 165│ distribution, f"{self.version_info[0]}.{self.version_info[1]}" E 166│ ) E 167│ if wheel is None: E → 168│ raise RuntimeError(f"embedded {distribution} wheel not found") E 169│ return wheel.path E 170│ E 171│ @property E 172│ def pip_embedded(self) -> Path: E E Cannot install pytest. E E E RuntimeError E E embedded pip wheel not found E E at /nix/store/qlr0kcm6s4h8fkihwig07cpvfanmlrfi-python3.14-poetry-2.4.1/lib/python3.14/site-packages/poetry/utils/env/base_env.py:168 in get_embedded_wheel E 164│ wheel = get_embed_wheel( E 165│ distribution, f"{self.version_info[0]}.{self.version_info[1]}" E 166│ ) E 167│ if wheel is None: E → 168│ raise RuntimeError(f"embedded {distribution} wheel not found") E 169│ return wheel.path E 170│ E 171│ @property E 172│ def pip_embedded(self) -> Path: E E Cannot install black. E E E error: Warning: The file chosen for install of black 21.11b0 (black-21.11b0-py3-none-any.whl) is yanked. Reason for being yanked: Broken regex dependency. Use 21.11b1 instead. E E E assert 1 == 0 /build/source/tests/installation/test_executor.py:496: AssertionError =============================== warnings summary =============================== ../../nix/store/hdw07vcf3h94alv8xd2ga5nil4mwgyf3-python3.14-pytest-9.1.1/lib/python3.14/site-packages/_pytest/python.py:124 ../../nix/store/hdw07vcf3h94alv8xd2ga5nil4mwgyf3-python3.14-pytest-9.1.1/lib/python3.14/site-packages/_pytest/python.py:124 ../../nix/store/hdw07vcf3h94alv8xd2ga5nil4mwgyf3-python3.14-pytest-9.1.1/lib/python3.14/site-packages/_pytest/python.py:124 ../../nix/store/hdw07vcf3h94alv8xd2ga5nil4mwgyf3-python3.14-pytest-9.1.1/lib/python3.14/site-packages/_pytest/python.py:124 /nix/store/hdw07vcf3h94alv8xd2ga5nil4mwgyf3-python3.14-pytest-9.1.1/lib/python3.14/site-packages/_pytest/python.py:124: PytestRemovedIn10Warning: Passing a non-Collection iterable to parametrize is deprecated. Test: tests/repositories/test_repository_pool.py::test_repository_from_single_repo_pool, argvalues type: generator Please convert to a list or tuple. See https://docs.pytest.org/en/stable/deprecations.html#parametrize-iterators metafunc.parametrize(*marker.args, **marker.kwargs, _param_mark=marker) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ SKIPPED [3] tests/console/commands/env/test_activate.py:59: Only Windows shells SKIPPED [1] tests/console/commands/self/test_sync.py:26: Only relevant for `poetry self install` SKIPPED [1] tests/console/commands/test_sync.py:26: Only relevant for `poetry install` SKIPPED [1] tests/console/commands/test_run.py:158: Poetry only installs CMD script files for console scripts of editable dependencies on Windows SKIPPED [1] tests/installation/test_executor.py:506: https://github.com/python-poetry/poetry/issues/7983 SKIPPED [19] tests/utils/test_compat.py:43: Windows paths SKIPPED [1] tests/utils/env/test_env_manager.py:1347: requires darwin SKIPPED [1] tests/utils/test_python_manager.py:104: Windows only SKIPPED [1] tests/vcs/git/test_system.py:32: These tests requires git cli SKIPPED [1] tests/vcs/git/test_system.py:37: These tests requires git cli SKIPPED [1] tests/vcs/git/test_system.py:43: These tests requires git cli SKIPPED [1] tests/vcs/git/test_system.py:48: These tests requires git cli FAILED tests/installation/test_executor.py::test_execute_executes_a_batch_of_operations - assert {'', ' ...ackage)', ...} == {'', ' - Dow...roject)', ...} FAILED tests/installation/test_executor.py::test_execute_prints_warning_for_yanked_package[operations1-False] - AssertionError: FAILED tests/installation/test_executor.py::test_execute_prints_warning_for_yanked_package[operations2-True] - AssertionError: ====== 3 failed, 3079 passed, 32 skipped, 4 warnings in 113.03s (0:01:53) ======