Upgrade PyPy to the v7.3.19 release. #2710
717 passed, 634 failed and 161 skipped
Report | Passed | Failed | Skipped | Time |
---|---|---|---|---|
dist/test-results/integration-1.xml | 55✅ | 141❌ | 52⚪ | 1144s |
dist/test-results/integration-2.xml | 38✅ | 157❌ | 29⚪ | 1783s |
dist/test-results/integration-4.xml | 55✅ | 145❌ | 25⚪ | 2417s |
dist/test-results/unit.xml | 569✅ | 191❌ | 55⚪ | 2236s |
❌ dist/test-results/integration-1.xml
248 tests were completed in 1144s with 55 passed, 141 failed and 52 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 55✅ | 141❌ | 52⚪ | 1144s |
❌ pytest
⚪ tests.integration.test_sh_boot
⚪ tests.integration.test_shebang_length_limit
tests.integration.test_issue_1817
⚪ test_sdist_for_project_with_pep517_build
tests.integration.cli.commands.test_issue_1734
⚪ test_lock_create_sdist_requires_python_different_from_current
⚪ test_lock_create_universal_interpreter_constraint_unsatisfiable
tests.integration.test_issue_1598
❌ test_mount_respects_env
pex_project_dir = 'D:/a/pex/pex/repo'
tests.integration.test_issue_1025
❌ test_extras_isolation
create_pth = <function create_pth.<locals>.write_pth at 0x00000229BE362F20>
tests.integration.test_issue_1933
⚪ test_musllinux_wheels_resolved
tests.integration.cli.commands.test_lock_foreign_platform_sdist
❌ test_lock_foreign_platform_sdist
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_lock_fore...sers\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_lock_foreign_platform_sdist')
tests.integration.venv_ITs.test_issue_1637
✅ test_pex_path_dedup
❌ test_pex_path_collision_non_conflicting[zipapp]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_pex_path_...in\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_pex_path_collision_non_conflicting_zipapp_')
tests.integration.test_issue_1995
⚪ test_packaging
tests.integration.test_pex_import
❌ test_import_from_pex[UNZIPPED-zipapp]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_import_fr...\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_import_from_pex_UNZIPPED_zipapp_')
❌ test_import_from_pex[VENV-packed]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_import_fr...ers\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_import_from_pex_VENV_packed_')
❌ test_import_from_pex[UNZIPPED-loose]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_import_fr...\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_import_from_pex_UNZIPPED_loose_')
tests.integration.build_system.test_pep_517
✅ test_build_sdist_pyproject_toml
tests.integration.test_issue_1560
❌ test_build_isolation[3.9.13]
venv_factory = VenvFactory(python_version='3.9.13', _factory=<function all_python_venvs.<locals>.<genexpr>.<lambda> at 0x00000229BDF18220>)
tests.integration.cli.commands.test_vcs_lock
❌ test_subdir
test_tool = TestTool(tmpdir='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_subdir0')
❌ test_vcs_equivalence
test_tool = TestTool(tmpdir='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_vcs_equivalence0')
tests.integration.venv_ITs.test_install_wheel_multiple_site_packages_dirs
⚪ test_installed_wheels
tests.integration.venv_ITs.test_issue_2160
❌ test_ns_package_split_across_sources_and_deps[packed-zipapp]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_ns_packag...Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_ns_package_split_across_sources_and_deps_packed_zipapp_')
❌ test_ns_package_split_across_sources_and_deps[zipapp-zipapp]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_ns_packag...Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_ns_package_split_across_sources_and_deps_zipapp_zipapp_')
❌ test_ns_package_split_across_sources_and_deps[loose-venv (site-packages symlinks)]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_ns_packag...-runneradmin\\pytest-0\\popen-gw1\\test_ns_package_split_across_sources_and_deps_loose_venv__site_packages_symlinks__')
❌ test_ns_package_split_across_sources_and_deps[zipapp-venv (site-packages symlinks)]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_ns_packag...runneradmin\\pytest-0\\popen-gw1\\test_ns_package_split_across_sources_and_deps_zipapp_venv__site_packages_symlinks__')
tests.integration.test_integration
❌ test_pex_multi_resolve_1
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_pex_multi_resolve_12', symlink=None)
❌ test_seed_verbose[Direct-.whl file-zipapp-PEX]
isort_pex_args = ('C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_seed_verbose_Direct-c...n<'3.6'", "setuptools==44.1.1; python_version<'3.6'", "isort==5.6.4; python_version>='3.6'", '-c', 'isort', '-o', ...])
❌ test_seed_verbose[Python-.whl file-packed-PEX]
isort_pex_args = ('C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_seed_verbose_Python-9...n<'3.6'", "setuptools==44.1.1; python_version<'3.6'", "isort==5.6.4; python_version>='3.6'", '-c', 'isort', '-o', ...])
❌ test_pex_path_in_pex_info_and_env
def test_pex_path_in_pex_info_and_env():
❌ test_pex_repl_built
def test_pex_repl_built():
❌ test_setup_interpreter_constraint
path_with_git = <function path_with_git.<locals>._path_with_git at 0x00000229BE631620>
❌ test_seed_verbose[Direct-.whl file-loose-PEX]
isort_pex_args = ('C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_seed_verbose_Direct-f...n<'3.6'", "setuptools==44.1.1; python_version<'3.6'", "isort==5.6.4; python_version>='3.6'", '-c', 'isort', '-o', ...])
⚪ test_requirement_file_from_url
❌ test_seed_verbose[Direct-installed wheel chroot-loose-PEX]
isort_pex_args = ('C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_seed_verbose_Direct-8...n<'3.6'", "setuptools==44.1.1; python_version<'3.6'", "isort==5.6.4; python_version>='3.6'", '-c', 'isort', '-o', ...])
❌ test_binary_scripts[installed wheel chroot-zipapp-PEX]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_binary_sc...Data\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_binary_scripts_installed_wheel_chroot_zipapp_PEX_')
⚪ test_cross_platform_abi_targeting_behavior_exact
❌ test_seed[installed wheel chroot-packed-PEX]
isort_pex_args = ('C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_seed_installed_whee-4...n<'3.6'", "setuptools==44.1.1; python_version<'3.6'", "isort==5.6.4; python_version>='3.6'", '-c', 'isort', '-o', ...])
❌ test_seed_verbose[Python-.whl file-zipapp-VENV]
isort_pex_args = ('C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_seed_verbose_Python-f...n<'3.6'", "setuptools==44.1.1; python_version<'3.6'", "isort==5.6.4; python_version>='3.6'", '-c', 'isort', '-o', ...])
❌ test_pex_cache_dir_and_pex_root
def test_pex_cache_dir_and_pex_root():
❌ test_seed[installed wheel chroot-zipapp-PEX]
isort_pex_args = ('C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_seed_installed_whee-2...n<'3.6'", "setuptools==44.1.1; python_version<'3.6'", "isort==5.6.4; python_version>='3.6'", '-c', 'isort', '-o', ...])
❌ test_seed_verbose[Direct-.whl file-loose-VENV]
isort_pex_args = ('C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_seed_verbose_Direct-2...n<'3.6'", "setuptools==44.1.1; python_version<'3.6'", "isort==5.6.4; python_version>='3.6'", '-c', 'isort', '-o', ...])
⚪ test_pex_repl_tab_complete[PEX]
❌ test_entry_point_exit_code
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_entry_point_exit_code0', symlink=None)
⚪ test_trusted_host_handling
⚪ test_pex_repl_tab_complete[VENV]
⚪ test_pex_repl_history[VENV]
❌ test_entry_point_verification_3rdparty[.whl file-zipapp]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_entry_poi...ta\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_entry_point_verification_3rdparty__whl_file_zipapp_')
❌ test_seed[installed wheel chroot-zipapp-VENV]
isort_pex_args = ('C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_seed_installed_whee-1...n<'3.6'", "setuptools==44.1.1; python_version<'3.6'", "isort==5.6.4; python_version>='3.6'", '-c', 'isort', '-o', ...])
❌ test_entry_point_verification_3rdparty[installed wheel chroot-loose]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_entry_poi...emp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_entry_point_verification_3rdparty_installed_wheel_chroot_loose_')
✅ test_pex_source_bundling
❌ test_binary_scripts[installed wheel chroot-loose-VENV]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_binary_sc...Data\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_binary_scripts_installed_wheel_chroot_loose_VENV_')
❌ test_binary_scripts[.whl file-packed-VENV]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_binary_sc...eradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_binary_scripts__whl_file_packed_VENV_')
❌ test_seed[installed wheel chroot-loose-VENV]
isort_pex_args = ('C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_seed_installed_whee-c...n<'3.6'", "setuptools==44.1.1; python_version<'3.6'", "isort==5.6.4; python_version>='3.6'", '-c', 'isort', '-o', ...])
✅ test_pex_source_bundling_pep420
✅ test_pex_execute
⚪ test_pex_manylinux_runtime
⚪ test_invalid_macosx_platform_tag
⚪ test_ipython_appnope_env_markers
tests.integration.resolve.test_issue_1918
⚪ test_redacted_requirement_handling[24.3-pip-2020-resolver-direct-reference]
⚪ test_redacted_requirement_handling[24.2-pip-2020-resolver-direct-reference]
⚪ test_redacted_requirement_handling[24.1.2-pip-2020-resolver-direct-reference]
⚪ test_redacted_requirement_handling[24.1.2-pip-2020-resolver-pip-proprietary]
⚪ test_redacted_requirement_handling[25.0.1-pip-2020-resolver-pip-proprietary]
tests.integration.test_issue_157
⚪ test_pex_cli_no_args[VENV]
⚪ test_empty_pex_no_args[FORCE_COLOR-scie-VENV]
⚪ test_empty_pex_no_args[NO_COLOR-scie-ZIPAPP]
⚪ test_empty_pex_no_args[NO_COLOR-scie-VENV]
⚪ test_pex_info_command_loose_venv_pex_directory
⚪ test_pex_info_command_packed_pex_directory
⚪ test_empty_pex_no_args[NO_COLOR-traditional-VENV]
⚪ test_empty_pex_no_args[IS_TTY-traditional-ZIPAPP]
⚪ test_empty_pex_no_args[NO_COLOR-traditional-ZIPAPP]
⚪ test_pex_info_command_pex_file
tests.integration.cli.commands.test_issue_2057
❌ test_lock_create_local_project_direct_reference[Subset [PEP-508]-Create Lock [Pip Proprietary]]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_lock_crea...\pytest-0\\popen-gw0\\test_lock_create_local_project_direct_reference_Subset__PEP_508__Create_Lock__Pip_Proprietary__')
❌ test_lock_create_archive_direct_reference[Full-Create Lock [Pip Proprietary]]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_lock_crea...st-of-runneradmin\\pytest-0\\popen-gw0\\test_lock_create_archive_direct_reference_Full_Create_Lock__Pip_Proprietary__')
tests.integration.cli.commands.test_lock_sync
❌ test_sync_venv_noop
shared_integration_test_tmpdir = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\shared_integration_test_tmpdir'
❌ test_sync_extras
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_sync_extras0', symlink=None)
❌ test_sync_venv_run_retain_user_pip[--retain-pip]
shared_integration_test_tmpdir = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\shared_integration_test_tmpdir'
❌ test_sync_venv_run_retain_user_pip[--no-retain-pip]
shared_integration_test_tmpdir = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\shared_integration_test_tmpdir'
❌ test_sync_venv_run
shared_integration_test_tmpdir = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\shared_integration_test_tmpdir'
❌ test_sync_venv_dry_run_update
shared_integration_test_tmpdir = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\shared_integration_test_tmpdir'
❌ test_sync_universal_to_universal
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_sync_univ...sers\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_sync_universal_to_universal')
❌ test_sync_strict_to_sources
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_sync_strict_to_sources0', symlink=None)
❌ test_sync_remove
shared_integration_test_tmpdir = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\shared_integration_test_tmpdir'
tests.integration.cli.commands.test_issue_2050
⚪ test_pep_517_prepare_metadata_for_build_wheel_fallback
tests.integration.tools.commands.test_issue_2105
✅ test_pip_pex_setuptools_conflict
tests.integration.resolve.test_issue_1907
✅ test_pre_resolved_dists_nominal
❌ test_pre_resolved_dists_local_project_requirement
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_pre_resol...\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_pre_resolved_dists_local_project_requirement')
✅ test_pre_resolved_dists_subset
tests.integration.test_excludes
✅ test_exclude_deep[24.1.1-resolvelib]
✅ test_exclude_deep[24.2-resolvelib]
tests.integration.test_pex_bootstrapper
✅ test_boot_compatible_issue_1020_no_ic
❌ test_ensure_venv_namespace_packages
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_ensure_ve...s\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_ensure_venv_namespace_packages')
tests.integration.test_issue_2249
⚪ test_inspect[SCIE-ZIPAPP]
⚪ test_inspect[PEX-ZIPAPP]
tests.integration.build_system.test_pep_518
❌ test_load_build_system_pyproject_custom_repos
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_load_buil...dmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_load_build_system_pyproject_custom_repos')
tests.integration.venv_ITs.test_issue_1973
❌ test_system_site_packages_venv_pex
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_system_si...rs\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_system_site_packages_venv_pex')
tests.integration.test_issue_1422
❌ test_unconstrained_universal_venv_pex
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_unconstra...\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_unconstrained_universal_venv_pex')
tests.integration.test_issue_2572
❌ test_symlinked_home
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_symlinked_home0', symlink=None)
tests.integration.test_pex_entry_points
❌ test_script
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_script0', symlink=None)
✅ test_entry_point
tests.integration.test_keyring_support
❌ test_subprocess_provider[True-25.0.1]
shared_integration_test_tmpdir = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\shared_integration_test_tmpdir'
❌ test_subprocess_provider[True-24.1]
shared_integration_test_tmpdir = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\shared_integration_test_tmpdir'
❌ test_subprocess_provider[False-25.0.1]
shared_integration_test_tmpdir = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\shared_integration_test_tmpdir'
❌ test_subprocess_provider[False-24.1]
shared_integration_test_tmpdir = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\shared_integration_test_tmpdir'
❌ test_import_provider[True-25.0.1]
shared_integration_test_tmpdir = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\shared_integration_test_tmpdir'
❌ test_import_provider[True-24.1]
shared_integration_test_tmpdir = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\shared_integration_test_tmpdir'
❌ test_import_provider[False-25.0.1]
shared_integration_test_tmpdir = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\shared_integration_test_tmpdir'
❌ test_import_provider[False-24.1]
shared_integration_test_tmpdir = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\shared_integration_test_tmpdir'
tests.integration.test_issue_2017
⚪ test_statically_linked_musl_libc_cpython_support[25.0]
tests.integration.test_issue_2023
❌ test_unpack_robustness[UNZIP-installed wheel chroot-zipapp]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_unpack_ro...\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_unpack_robustness_UNZIP_installed_wheel_chroot_zipapp_')
❌ test_unpack_robustness[VENV (symlinks)-.whl file-loose]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_unpack_ro...ata\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_unpack_robustness_VENV__symlinks___whl_file_loose_')
❌ test_unpack_robustness[UNZIP-.whl file-packed]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_unpack_ro...min\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_unpack_robustness_UNZIP__whl_file_packed_')
❌ test_unpack_robustness[VENV (copies)-installed wheel chroot-packed]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_unpack_ro...Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_unpack_robustness_VENV__copies__installed_wheel_chroot_packed_')
tests.integration.test_issue_1302
❌ test_pex_repository_pep503
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_pex_repository_pep5030', symlink=None)
tests.integration.scie.test_pex_scie
❌ test_basic[ZIPAPP-packed-eager]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_basic_ZIP...Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_basic_ZIPAPP_packed_eager_')
❌ test_scie_busybox_console_script_inject_python_args[VENV]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_scie_busy...a\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_scie_busybox_console_script_inject_python_args_VENV_')
❌ test_basic[VENV-zipapp-eager]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_basic_VENV_zipapp_eager_0', symlink=None)
❌ test_basic[ZIPAPP-loose-eager]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_basic_ZIPAPP_loose_eager_0', symlink=None)
❌ test_basic[ZIPAPP-sh-boot-loose-lazy]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_basic_ZIP...\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_basic_ZIPAPP_sh_boot_loose_lazy_')
❌ test_scie_busybox_module_entry_point_injections
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_scie_busy...in\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_scie_busybox_module_entry_point_injections')
❌ test_basic[ZIPAPP-zipapp-eager]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_basic_ZIP...Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_basic_ZIPAPP_zipapp_eager_')
❌ test_basic[VENV-sh-boot-zipapp-eager]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_basic_VEN...\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_basic_VENV_sh_boot_zipapp_eager_')
❌ test_scie_busybox_console_scripts_all[VENV]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_scie_busy...radmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_scie_busybox_console_scripts_all_VENV_')
tests.integration.test_layout
❌ test_resiliency[installed wheel chroot-packed-VENV]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_resilienc...AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_resiliency_installed_wheel_chroot_packed_VENV_')
❌ test_resiliency[installed wheel chroot-zipapp-VENV]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_resilienc...AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_resiliency_installed_wheel_chroot_zipapp_VENV_')
tests.integration.test_inject_python_args
❌ test_python_args_passthrough[SH_BOOT-VENV]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_python_ar...eradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_python_args_passthrough_SH_BOOT_VENV_')
✅ test_python_args_passthrough[PYTHON-ZIPAPP]
❌ test_issue_2422[SH_BOOT-VENV]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_issue_2422_SH_BOOT_VENV_0', symlink=None)
❌ test_python_args_passthrough[PYTHON-VENV]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_python_ar...neradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_python_args_passthrough_PYTHON_VENV_')
tests.integration.test_issue_1520
❌ test_hermetic_console_scripts
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_hermetic_console_scripts0', symlink=None)
tests.integration.test_issue_2343
❌ test_no_build_no_wheel_honored_pex
shared_integration_test_tmpdir = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\shared_integration_test_tmpdir'
❌ test_only_wheel_honored_lock
inputs = [BuildRequest(target=LocalInterpreter('D:\\a\\pex\\pex\\repo\\.tox\\py313-pip25_0-integration\\Scripts\\python.exe'), ...r.common.quantity-0.3.11.tar.gz', fingerprint='9ce1d20b7dcd741091a3327aad2110f6b4dc289001bf620e7952af7bb98f3b8a'), ...]
tests.integration.cli.commands.test_issue_1711
❌ test_backtrack_links_preserved
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_backtrack_links_preserved0', symlink=None)
tests.integration.test_issue_2413
✅ test_venv_with_installs[wheel:yes-setuptools:yes-pip:yes]
✅ test_venv_with_installs[wheel:no-setuptools:yes-pip:yes]
✅ test_venv_with_installs[wheel:upgraded-setuptools:no-pip:upgraded]
✅ test_venv_with_installs[wheel:upgraded-setuptools:yes-pip:upgraded]
✅ test_venv_with_installs[wheel:no-setuptools:no-pip:no]
✅ test_venv_with_installs[wheel:yes-setuptools:upgraded-pip:no]
✅ test_venv_with_installs[wheel:yes-setuptools:yes-pip:no]
✅ test_venv_with_installs[wheel:no-setuptools:upgraded-pip:no]
✅ test_venv_with_installs[wheel:upgraded-setuptools:upgraded-pip:no]
✅ test_venv_with_installs[wheel:upgraded-setuptools:yes-pip:no]
✅ test_venv_with_installs[wheel:no-setuptools:yes-pip:no]
✅ test_venv_with_installs[wheel:upgraded-setuptools:no-pip:no]
✅ test_venv_with_installs[wheel:yes-setuptools:no-pip:no]
tests.integration.test_issue_2088
❌ test_venv_symlink_site_packages[--venv-site-packages-copies-packed]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_venv_syml...Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_venv_symlink_site_packages___venv_site_packages_copies_packed_')
tests.integration.test_issue_2415
⚪ test_gevent_monkeypatch
tests.integration.test_issue_2073
❌ test_lock_resolve_foreign_platform_yolo_cross_build
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_lock_reso...AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_lock_resolve_foreign_platform_yolo_cross_build')
tests.integration.test_issue_1479
❌ test_unicode_script_shebang_rewrite_docutils
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_unicode_s...admin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_unicode_script_shebang_rewrite_docutils')
tests.integration.cli.commands.test_lock_subset
✅ test_lock_subset_target_systems_and_ics_issue_2683
❌ test_lock_subset_extra_miss
input_requirements = ('D:/a/pex/pex/repo[management]', 'ansicolors', 'requests')
tests.integration.cli.commands.test_lock_script_metadata
❌ test_lock_script_conflict
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_lock_script_conflict0', symlink=None)
tests.integration.cli.commands.test_issue_2519
❌ test_sync_version_mismatch_prefer_binary_all_pips[25.0]
pip_version = '25.0'
❌ test_sync_version_mismatch_new_pip[24.1.1]
pip_version = '24.1.1'
❌ test_sync_version_mismatch_prefer_binary_all_pips[24.1]
pip_version = '24.1'
❌ test_sync_version_mismatch_prefer_binary_all_pips[24.1.2]
pip_version = '24.1.2'
❌ test_sync_version_mismatch_new_pip[24.1.2]
pip_version = '24.1.2'
❌ test_sync_version_mismatch_new_pip[24.3]
pip_version = '24.3'
⚪ test_sync_version_mismatch_old_pip[pip_version0]
tests.integration.test_reproducible
❌ test_reproducible_build_python_shebang_flag
def test_reproducible_build_python_shebang_flag():
⚪ test_reproducible_build_bdist_requirements
tests.integration.cli.commands.test_cache_prune
❌ test_app_prune
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_app_prune0', symlink=None)
tests.integration.test_issue_2391
❌ test_requirements_pex_wheel_type_mismatch[zipapp-zipapp]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_requireme...ta\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_requirements_pex_wheel_type_mismatch_zipapp_zipapp_')
❌ test_requirements_pex_wheel_type_mismatch[packed-loose]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_requireme...ata\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_requirements_pex_wheel_type_mismatch_packed_loose_')
tests.integration.cli.commands.test_lock
❌ test_universal_lock[pip-2020-resolver]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_universal...runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_universal_lock_pip_2020_resolver_')
❌ test_update_add_impossible
lock_file_path = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_update_add_impossible0\\lock.json'
❌ test_create
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_create0', symlink=None)
❌ test_update_noop_dry_run_check
lock_file_path = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_update_noop_dry_run_check0\\lock.json'
❌ test_update_noop
lock_file_path = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_update_noop0\\lock.json'
✅ test_update_targeted_closure_shrink
tests.integration.tools.commands.test_venv
❌ test_non_hermetic_issue_2004
pex_project_dir = 'D:/a/pex/pex/repo'
tests.integration.test_issue_1809
⚪ test_excepthook_scrubbing
tests.integration.cli.commands.test_lock_update
❌ test_lock_update_repo_migration_corrupted
lock = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_lock_update_repo_mi-c2ef50\\lock'
tests.integration.test_issue_2087
❌ test_long_wheel_names
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_long_wheel_names0', symlink=None)
tests.integration.cli.commands.test_venv_create
❌ test_venv_pip
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_venv_pip0', symlink=None)
✅ test_foreign_target
✅ test_flat_empty
tests.integration.test_issue_1870
❌ test_inherit_path_pex_info[prefer]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_inherit_p...rs\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_inherit_path_pex_info_prefer_')
tests.integration.test_setproctitle
❌ test_setproctitle[.whl file-zipapp-VENV]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_setprocti...nneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_setproctitle__whl_file_zipapp_VENV_')
❌ test_setproctitle[installed wheel chroot-zipapp-UNZIP]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_setprocti...Data\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_setproctitle_installed_wheel_chroot_zipapp_UNZIP_')
❌ test_setproctitle[.whl file-packed-VENV]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_setprocti...nneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_setproctitle__whl_file_packed_VENV_')
❌ test_setproctitle[.whl file-zipapp-UNZIP]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_setprocti...neradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_setproctitle__whl_file_zipapp_UNZIP_')
❌ test_setproctitle[installed wheel chroot-packed-UNZIP]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_setprocti...Data\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_setproctitle_installed_wheel_chroot_packed_UNZIP_')
tests.integration.test_interpreter_selection
✅ test_interpreter_resolution_with_multiple_constraint_options
❌ test_interpreter_resolution_pex_python_path_precedence_over_pex_python
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_interpret...p\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_interpreter_resolution_pex_python_path_precedence_over_pex_python')
✅ test_interpreter_constraints_honored_without_ppp_or_pp
❌ test_pex_exec_with_pex_python_path_only
def test_pex_exec_with_pex_python_path_only():
❌ test_plain_pex_exec_no_ppp_no_pp_no_constraints
def test_plain_pex_exec_no_ppp_no_pp_no_constraints():
tests.integration.test_issue_2183
⚪ test_lambdex_with_incompatible_attrs
tests.integration.test_variables
❌ test_pex_variable_always_defined_at_runtime[UNZIP-zipapp-NoStripPexEnv]
pex_project_dir = 'D:/a/pex/pex/repo'
❌ test_pex_variable_always_defined_at_runtime[VENV-loose-NoStripPexEnv]
pex_project_dir = 'D:/a/pex/pex/repo'
❌ test_pex_variable_always_defined_at_runtime[UNZIP-loose-NoStripPexEnv]
pex_project_dir = 'D:/a/pex/pex/repo'
❌ test_pex_variable_always_defined_at_runtime[VENV-zipapp-NoStripPexEnv]
pex_project_dir = 'D:/a/pex/pex/repo'
❌ test_pex_variable_always_defined_at_runtime[VENV-packed-NoStripPexEnv]
pex_project_dir = 'D:/a/pex/pex/repo'
tests.integration.test_overrides
❌ test_override
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_override0', symlink=None)
tests.integration.test_reexec
✅ test_pex_reexec_constraints_dont_match_current_pex_python_path
✅ test_pex_reexec_no_constraints_pythonpath_present
⚪ test_pex_re_exec_failure
tests.integration.venv_ITs.test_issue_1745
❌ test_interpreter_mode_python_options[- (<code> from STDIN)-ZIPAPP]
execution_mode_args = []
❌ test_interpreter_mode_python_options[<dir>-VENV]
execution_mode_args = ['--venv']
tests.integration.test_script_metadata
❌ test_targets_additive
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_targets_additive0', symlink=None)
tests.integration.test_issue_2410
❌ test_pex_with_editable
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_pex_with_editable0', symlink=None)
tests.integration.cli.commands.test_venv_inspect
❌ test_inspect_pex_venv
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_inspect_pex_venv0', symlink=None)
✅ test_no_python
✅ test_not_venv_interpreter
tests.integration.test_issue_1825
✅ test_pex_run_inherit_path_and_extra_sys_path[prefer]
❌ test_pex_run_extra_sys_path[VENV]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_pex_run_e...ers\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_pex_run_extra_sys_path_VENV_')
tests.integration.test_issue_2186
❌ test_default_resolve_no_warning
def test_default_resolve_no_warning():
❌ test_incompatible_resolve_error
incompatible_pip_version = '20.3.4-patched'
❌ test_incompatible_resolve_warning
incompatible_pip_version = '20.3.4-patched'
tests.integration.resolve.test_issue_2568
❌ test_independent_logs_for_independent_runs
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_independe...eradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_independent_logs_for_independent_runs')
tests.integration.test_issue_1879
✅ test_overwrite[zipapp-installed wheel chroot-packed-.whl file]
✅ test_overwrite[zipapp-installed wheel chroot-packed-installed wheel chroot]
✅ test_overwrite[packed-installed wheel chroot-zipapp-.whl file]
✅ test_overwrite[loose-.whl file-loose-installed wheel chroot]
✅ test_overwrite[zipapp-installed wheel chroot-loose-.whl file]
✅ test_overwrite[packed-.whl file-zipapp-.whl file]
✅ test_overwrite[packed-.whl file-loose-installed wheel chroot]
✅ test_overwrite[zipapp-installed wheel chroot-zipapp-installed wheel chroot]
✅ test_overwrite[zipapp-.whl file-zipapp-installed wheel chroot]
tests.integration.test_executuon_mode_venv
❌ test_custom_prompt
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_custom_prompt0', symlink=None)
tests.integration.test_issue_298
⚪ test_confounding_encoding
tests.integration.cli.commands.test_lock_update_issues_2332_2334
❌ test_lock_update_replace
shared_integration_test_tmpdir = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\shared_integration_test_tmpdir'
❌ test_lock_update_mixed
shared_integration_test_tmpdir = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\shared_integration_test_tmpdir'
❌ test_lock_update_downgrade
shared_integration_test_tmpdir = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\shared_integration_test_tmpdir'
❌ test_lock_update_nominal
inputs = [BuildRequest(target=LocalInterpreter('D:\\a\\pex\\pex\\repo\\.tox\\py313-pip25_0-integration\\Scripts\\python.exe'), ...r.common.quantity-0.3.11.tar.gz', fingerprint='9ce1d20b7dcd741091a3327aad2110f6b4dc289001bf620e7952af7bb98f3b8a'), ...]
❌ test_lock_update_replace_invalid
shared_integration_test_tmpdir = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\shared_integration_test_tmpdir'
tests.integration.resolve.test_issue_2412
❌ test_invalid_project
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_invalid_project0', symlink=None)
tests.integration.cli.commands.test_export_subset
✅ test_full
tests.integration.test_downloads
✅ test_issue_1849_fingerprint_foreign_artifact
tests.integration.test_issue_2134
✅ test_add_sub_package
✅ test_add_top_level_module
✅ test_add_module_in_package
tests.integration.test_pep_427
❌ test_install_scripts
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_install_scripts0', symlink=None)
tests.integration.cli.commands.test_interpreter_inspect
✅ test_inspect_default_verbose
tests.integration.resolve.pep_691.test_api
✅ test_valid[application/vnd.pypi.simple.v1+json]
✅ test_invalid_content_type
tests.integration.cli.commands.test_issue_2414
✅ test_redirects_dont_stomp_original_index_urls[23.3.1]
tests.integration.venv_ITs.test_issue_1641
⚪ test_missing_data_dir_entries[venv (site-packages copies)]
⚪ test_missing_data_dir_entries[zipapp]
tests.integration.test_issue_1656
⚪ test_old_venv_tool_vs_new_pex
⚪ test_new_venv_tool_vs_old_pex
⚪ test_mixed_pex_root
tests.integration.test_issue_1730
⚪ test_check_install_issue_1730
tests.integration.test_inject_env_and_args
⚪ test_pyuwsgi[ZIPAPP]
⚪ test_pyuwsgi[VENV]
tests.integration.test_issue_539
⚪ test_abi3_resolution
❌ dist/test-results/integration-2.xml
224 tests were completed in 1783s with 38 passed, 157 failed and 29 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 38✅ | 157❌ | 29⚪ | 1783s |
❌ pytest
⚪ tests.integration.test_sh_boot
⚪ tests.integration.test_shebang_length_limit
tests.integration.test_lock_resolver
❌ test_multiplatform
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_multiplatform0', symlink=None)
❌ test_strict_basic
tmpdir_factory = TempdirFactory(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1', retention_policy='failed')
tests.integration.cli.commands.test_issue_2098
❌ test_missing_download_lock_analysis_handling
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_missing_d...admin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_missing_download_lock_analysis_handling')
tests.integration.test_issue_2348
❌ test_find_links_url_escaping
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_find_links_url_escaping0', symlink=None)
tests.integration.cli.commands.test_issue_1821
❌ test_target_system_platform_specific
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_target_sy...\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_target_system_platform_specific')
❌ test_non_universal_target_system_unsupported[strict]
style = 'strict'
tests.integration.cli.commands.test_lock_reproducibility_hash_seed
❌ test_reproducibility_hostile_project_lock
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_reproduci...neradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_reproducibility_hostile_project_lock')
❌ test_reproducibility_hostile_vcs_lock
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_reproduci...\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_reproducibility_hostile_vcs_lock')
tests.integration.test_issue_2412
⚪ test_bdist_pex_locked_issue_2412_repro_exact
tests.integration.cli.commands.test_local_project_lock
❌ test_fingerprint_stability
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_fingerprint_stability0', symlink=None)
❌ test_path_mappings
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_path_mappings0', symlink=None)
tests.integration.test_issue_157
⚪ test_empty_pex_no_args[IS_TTY-scie-VENV]
⚪ test_empty_pex_no_args[TERM=dumb-scie-VENV]
⚪ test_empty_pex_no_args[FORCE_COLOR-traditional-ZIPAPP]
⚪ test_pex_with_deps[ZIPAPP]
⚪ test_pex_with_deps[VENV]
⚪ test_pex_info_command_json
tests.integration.scie.test_discussion_2516
❌ test_discussion_2516_op
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_discussion_2516_op0', symlink=None)
tests.integration.test_reproducible
❌ test_reproducible_build_sdist_requirements
major_compatible_pythons = ('D:\\a\\pex\\pex\\repo\\.tox\\py313-pip25_0-integration\\Scripts\\python.EXE', 'D:\\a\\pex\\pex\\.pex_dev\\pyenv-win\...nv-win\\versions\\3.9.13\\python.exe', 'D:\\a\\pex\\pex\\.pex_dev\\pyenv-win\\pyenv-win\\versions\\3.10.7\\python.exe')
⚪ test_reproducible_build_m_flag
tests.integration.cli.commands.test_cache_prune
❌ test_venv_prune_wheel_copies
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_venv_prune_wheel_copies0', symlink=None)
❌ test_zipapp_prune_shared_deps
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_zipapp_prune_shared_deps0', symlink=None)
❌ test_installed_wheel_prune_run_time
pex = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_installed_wheel_pru-111070\\pex'
❌ test_zipapp_prune_shared_code
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_zipapp_prune_shared_code0', symlink=None)
❌ test_venv_prune_interpreter
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_venv_prune_interpreter0', symlink=None)
tests.integration.test_issue_1225
❌ test_venv_mode_pex_path
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_venv_mode_pex_path0', symlink=None)
tests.integration.venv_ITs.test_issue_1630
❌ test_data_files
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_data_files0', symlink=None)
tests.integration.test_issue_2413
❌ test_bdist_pex_under_tox
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_bdist_pex_under_tox0', symlink=None)
✅ test_venv_with_installs[wheel:upgraded-setuptools:upgraded-pip:upgraded]
✅ test_venv_with_installs[wheel:yes-setuptools:no-pip:upgraded]
✅ test_venv_with_installs[wheel:no-setuptools:yes-pip:upgraded]
✅ test_venv_with_installs[wheel:yes-setuptools:yes-pip:upgraded]
✅ test_venv_with_installs[wheel:upgraded-setuptools:yes-pip:yes]
✅ test_venv_with_installs[wheel:yes-setuptools:no-pip:yes]
tests.integration.cli.commands.test_vcs_lock
❌ test_vcs_fingerprint_stability
test_tool = TestTool(tmpdir='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_vcs_fingerprint_stability0')
❌ test_vcs_direct_reference
test_tool = TestTool(tmpdir='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_vcs_direct_reference0')
❌ test_vcs_pip_proprietary
test_tool = TestTool(tmpdir='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_vcs_pip_proprietary0')
tests.integration.venv_ITs.test_issue_1637
❌ test_pex_path_collision_non_conflicting[venv (site-packages symlinks)]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_pex_path_...p\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_pex_path_collision_non_conflicting_venv__site_packages_symlinks__')
tests.integration.resolve.test_issue_2532
⚪ test_resolved_wheel_tag_platform_mismatch_warns
tests.integration.cli.commands.test_lock
❌ test_create_vcs
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_create_vcs0', symlink=None)
❌ test_update_partial
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_update_partial0', symlink=None)
❌ test_update_targeted_impossible
lock_file_path = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_update_targeted_imp-e3c890\\lock.json'
❌ test_update_targeted_downgrade
lock_file_path = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_update_targeted_downgrade0\\lock.json'
tests.integration.test_integration
❌ test_pex_manylinux_and_tag_selection_linux_msgpack
def test_pex_manylinux_and_tag_selection_linux_msgpack():
❌ test_pex_manylinux_and_tag_selection_lxml_osx
def test_pex_manylinux_and_tag_selection_lxml_osx():
⚪ test_require_hashes
❌ test_venv_mode
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_venv_mode0', symlink=None)
❌ test_inherit_path_backwards_compatibility
def test_inherit_path_backwards_compatibility():
❌ test_setup_python_path
path_with_git = <function path_with_git.<locals>._path_with_git at 0x000002BCE22AFCE0>
✅ test_setup_python
❌ test_seed_verbose[Direct-installed wheel chroot-zipapp-PEX]
isort_pex_args = ('C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_seed_verbose_Direct-7...n<'3.6'", "setuptools==44.1.1; python_version<'3.6'", "isort==5.6.4; python_version>='3.6'", '-c', 'isort', '-o', ...])
❌ test_seed_verbose[Direct-.whl file-packed-PEX]
isort_pex_args = ('C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_seed_verbose_Direct-c...n<'3.6'", "setuptools==44.1.1; python_version<'3.6'", "isort==5.6.4; python_version>='3.6'", '-c', 'isort', '-o', ...])
❌ test_pex_root_build
def test_pex_root_build():
❌ test_seed_verbose[Python-installed wheel chroot-packed-VENV]
isort_pex_args = ('C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_seed_verbose_Python-1...n<'3.6'", "setuptools==44.1.1; python_version<'3.6'", "isort==5.6.4; python_version>='3.6'", '-c', 'isort', '-o', ...])
✅ test_unzip_mode
❌ test_seed_verbose[Direct-installed wheel chroot-packed-VENV]
isort_pex_args = ('C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_seed_verbose_Direct-7...n<'3.6'", "setuptools==44.1.1; python_version<'3.6'", "isort==5.6.4; python_version>='3.6'", '-c', 'isort', '-o', ...])
❌ test_pex_interpreter_interact_custom_setuptools_useable
def test_pex_interpreter_interact_custom_setuptools_useable():
❌ test_pex_repl_cli
def test_pex_repl_cli():
✅ test_disable_cache
❌ test_seed[.whl file-zipapp-PEX]
isort_pex_args = ('C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_seed__whl_file_zipa-3...n<'3.6'", "setuptools==44.1.1; python_version<'3.6'", "isort==5.6.4; python_version>='3.6'", '-c', 'isort', '-o', ...])
❌ test_pip_issues_9420_workaround
def test_pip_issues_9420_workaround():
✅ test_invalid_entry_point_verification_3rdparty[.whl file-zipapp]
✅ test_invalid_entry_point_verification_3rdparty[installed wheel chroot-packed]
✅ test_invalid_entry_point_verification_3rdparty[installed wheel chroot-zipapp]
❌ test_binary_scripts[.whl file-zipapp-VENV]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_binary_sc...eradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_binary_scripts__whl_file_zipapp_VENV_')
❌ test_requirements_network_configuration
self = <pex.venv.virtualenv.Virtualenv object at 0x000002BCE29B3380>
❌ test_binary_scripts[installed wheel chroot-packed-VENV]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_binary_sc...ata\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_binary_scripts_installed_wheel_chroot_packed_VENV_')
⚪ test_pex_repl_history[PEX]
❌ test_binary_scripts[.whl file-packed-PEX]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_binary_sc...neradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_binary_scripts__whl_file_packed_PEX_')
❌ test_entry_point_verification_3rdparty[installed wheel chroot-zipapp]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_entry_poi...mp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_entry_point_verification_3rdparty_installed_wheel_chroot_zipapp_')
✅ test_tmpdir_file
tests.integration.test_issue_2395
❌ test_download_incompatible_python
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_download_...ers\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_download_incompatible_python')
tests.integration.test_inject_env_and_args
⚪ test_complex[ZIPAPP]
❌ test_inject_args[VENV]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_inject_args_VENV_0', symlink=None)
✅ test_inject_env_invalid
tests.integration.test_interpreter_selection
❌ test_interpreter_selection_using_os_environ_for_bootstrap_reexec
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_interpret...l\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_interpreter_selection_using_os_environ_for_bootstrap_reexec')
❌ test_interpreter_resolution_with_pex_python_path
def test_interpreter_resolution_with_pex_python_path():
✅ test_interpreter_constraints_to_pex_info_py3
tests.integration.test_issue_1031
❌ test_setuptools_isolation_with_system_site_packages[pyvenv]
create_venv = <function <lambda> at 0x000002BCE1C35440>
tests.integration.resolve.test_issue_1918
⚪ test_redacted_requirement_handling[24.1.1-pip-2020-resolver-direct-reference]
⚪ test_redacted_requirement_handling[24.2-pip-2020-resolver-pip-proprietary]
⚪ test_redacted_requirement_handling[24.1-pip-2020-resolver-direct-reference]
⚪ test_redacted_requirement_handling[24.3-pip-2020-resolver-pip-proprietary]
⚪ test_redacted_requirement_handling[25.0.1-pip-2020-resolver-direct-reference]
tests.integration.cli.commands.test_issue_2057
❌ test_lock_create_local_project_direct_reference[Subset [Pip Proprietary]-Create Lock [Pip Proprietary]]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_lock_crea...0\\popen-gw0\\test_lock_create_local_project_direct_reference_Subset__Pip_Proprietary__Create_Lock__Pip_Proprietary__')
❌ test_lock_create_archive_direct_reference[Subset [Pip Proprietary]-Create Lock [PEP-508]]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_lock_crea...admin\\pytest-0\\popen-gw0\\test_lock_create_archive_direct_reference_Subset__Pip_Proprietary__Create_Lock__PEP_508__')
❌ test_lock_create_archive_direct_reference[Subset [PEP-508]-Create Lock [PEP-508]]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_lock_crea...f-runneradmin\\pytest-0\\popen-gw0\\test_lock_create_archive_direct_reference_Subset__PEP_508__Create_Lock__PEP_508__')
❌ test_pex_archive_direct_reference[Create Pex [PEP-508]]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_pex_archi...ata\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_pex_archive_direct_reference_Create_Pex__PEP_508__')
tests.integration.scie.test_pex_scie
❌ test_multiple_platforms
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_multiple_platforms0', symlink=None)
❌ test_scie_busybox_console_scripts_remove_distribution
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_scie_busy...pData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_scie_busybox_console_scripts_remove_distribution')
❌ test_scie_busybox_console_scripts_all[ZIPAPP]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_scie_busy...dmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_scie_busybox_console_scripts_all_ZIPAPP_')
❌ test_scie_name_style_platform_parent_dir
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_scie_name...nneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_scie_name_style_platform_parent_dir')
❌ test_basic[VENV-sh-boot-zipapp-lazy]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_basic_VEN...\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_basic_VENV_sh_boot_zipapp_lazy_')
❌ test_basic[ZIPAPP-sh-boot-zipapp-eager]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_basic_ZIP...unneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_basic_ZIPAPP_sh_boot_zipapp_eager_')
❌ test_basic[VENV-zipapp-lazy]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_basic_VENV_zipapp_lazy_0', symlink=None)
❌ test_basic[ZIPAPP-loose-lazy]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_basic_ZIPAPP_loose_lazy_0', symlink=None)
❌ test_basic[ZIPAPP-sh-boot-zipapp-lazy]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_basic_ZIP...runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_basic_ZIPAPP_sh_boot_zipapp_lazy_')
❌ test_scie_busybox_console_script_inject_env[VENV]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_scie_busy...\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_scie_busybox_console_script_inject_env_VENV_')
❌ test_basic[VENV-sh-boot-loose-lazy]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_basic_VEN...s\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_basic_VENV_sh_boot_loose_lazy_')
❌ test_script_not_found
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_script_not_found0', symlink=None)
❌ test_basic[ZIPAPP-zipapp-lazy]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_basic_ZIPAPP_zipapp_lazy_0', symlink=None)
❌ test_basic[VENV-sh-boot-loose-eager]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_basic_VEN...\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_basic_VENV_sh_boot_loose_eager_')
❌ test_scie_name_style_platform_file_suffix
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_scie_name...neradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_scie_name_style_platform_file_suffix')
tests.integration.test_excludes
✅ test_exclude_deep[24.3-resolvelib]
✅ test_exclude_deep[24.1.2-resolvelib]
✅ test_exclude_deep[24.3.1-resolvelib]
tests.integration.test_issue_2113
❌ test_metadata_gen_from_dist_failure_build_pex
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_metadata_...dmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_metadata_gen_from_dist_failure_build_pex')
❌ test_metadata_gen_from_local_project_failure_lock
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_metadata_...\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_metadata_gen_from_local_project_failure_lock')
tests.integration.tools.commands.test_issue_2105
❌ test_pip_pex_no_conflicts
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_pip_pex_no_conflicts0', symlink=None)
tests.integration.venv_ITs.test_issue_2065
❌ test_venv_pex_script_non_hermetic[--sh-boot]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_venv_pex_...admin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_venv_pex_script_non_hermetic___sh_boot_')
tests.integration.test_issue_2739
❌ test_tar_bz2
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_tar_bz20', symlink=None)
tests.integration.test_issue_2249
⚪ test_inspect[SCIE-VENV-SH_BOOT]
⚪ test_inspect[PEX-SH_BOOT]
⚪ test_inspect[PEX-VENV]
⚪ test_inspect[PEX-VENV-SH_BOOT]
tests.integration.venv_ITs.test_issue_2160
❌ test_ns_package_split_across_sources_and_deps[loose-venv (site-packages copies)]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_ns_packag...of-runneradmin\\pytest-0\\popen-gw1\\test_ns_package_split_across_sources_and_deps_loose_venv__site_packages_copies__')
tests.integration.test_layout
❌ test_resiliency[.whl file-packed-PEX]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_resilienc...\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_resiliency__whl_file_packed_PEX_')
❌ test_resiliency[.whl file-loose-VENV]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_resilienc...\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_resiliency__whl_file_loose_VENV_')
❌ test_resiliency[installed wheel chroot-loose-VENV]
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_resilienc...\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_resiliency_installed_wheel_chroot_loose_VENV_')
tests.integration.cli.commands.test_lock_update_issues_2332_2334
❌ test_lock_update_delete_invalid
shared_integration_test_tmpdir = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\shared_integration_test_tmpdir'
❌ test_lock_update_conflict
shared_integration_test_tmpdir = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\shared_integration_test_tmpdir'
❌ test_lock_delete_complex
inputs = [BuildRequest(target=LocalInterpreter('D:\\a\\pex\\pex\\repo\\.tox\\py313-pip25_0-integration\\Scripts\\python.exe'), ....python.exe\\flit_core-3.11.0.tar.gz', fingerprint='6ceeee3219e9d2ea282041f3e027c441597b450b33007cb81168e887b6113a8f')]
tests.integration.test_keyring_support
❌ test_subprocess_provider[True-24.3]
shared_integration_test_tmpdir = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\shared_integration_test_tmpdir'
❌ test_subprocess_provider[True-24.1.2]
shared_integration_test_tmpdir = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\shared_integration_test_tmpdir'
❌ test_subprocess_provider[False-24.3]
shared_integration_test_tmpdir = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\shared_integration_test_tmpdir'
❌ test_subprocess_provider[False-24.1.2]
shared_integration_test_tmpdir = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\shared_integration_test_tmpdir'
❌ test_import_provider[True-24.3]
shared_integration_test_tmpdir = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\shared_integration_test_tmpdir'
❌ test_import_provider[True-24.1.2]
shared_integration_test_tmpdir = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\shared_integration_test_tmpdir'
❌ test_import_provider[False-24.3]
Report exceeded GitHub limit of 65535 bytes and has been trimmed
Annotations
Check failure on line 0 in dist/test-results/integration-1.xml
github-actions / Windows Test Results
pytest ► tests.integration.test_issue_1598 ► test_mount_respects_env
Failed test found in:
dist/test-results/integration-1.xml
Error:
pex_project_dir = 'D:/a/pex/pex/repo'
Raw output
pex_project_dir = 'D:/a/pex/pex/repo'
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_mount_respects_env0', symlink=None)
def test_mount_respects_env(
pex_project_dir, # type: str
tmpdir, # type: Any
):
# type: (...) -> None
home = os.path.join(str(tmpdir), "home")
rel_pex_root = os.path.relpath(cache_root.path(expand_user=False), "~")
pex_root = os.path.join(home, rel_pex_root)
os.makedirs(pex_root)
os.chmod(pex_root, 0o555)
unwritable_pex_root_warning = "PEXWarning: PEX_ROOT is configured as {}".format(pex_root)
pex_file = os.path.join(str(tmpdir), "pex.pex")
result = run_pex_command(
args=[pex_project_dir, "-o", pex_file], env=make_env(HOME=home), quiet=True
)
result.assert_success()
> assert unwritable_pex_root_warning in result.error
E AssertionError: assert 'PEXWarning: PEX_ROOT is configured as C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_mount_respects_env0\\home\\AppData\\Local\\pex-tool.org\\pex\\Cache' in ''
E + where '' = IntegResults(output='', error='', return_code=0).error
tests\integration\test_issue_1598.py:35: AssertionError
Check failure on line 0 in dist/test-results/integration-1.xml
github-actions / Windows Test Results
pytest ► tests.integration.test_issue_1025 ► test_extras_isolation
Failed test found in:
dist/test-results/integration-1.xml
Error:
create_pth = <function create_pth.<locals>.write_pth at 0x00000229BE362F20>
Raw output
create_pth = <function create_pth.<locals>.write_pth at 0x00000229BE362F20>
def test_extras_isolation(create_pth):
# type: (Callable[[str, str], None]) -> None
> venv = ensure_python_venv(PY310)
tests\integration\test_issue_1025.py:44:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
testing\__init__.py:691: in ensure_python_venv
subprocess.check_call(args=[pip, "install", "-U", "pip"])
testing\subprocess.py:61: in check_call
subprocess.check_call(args=_safe_args(args), **kwargs)
C:\hostedtoolcache\windows\Python\3.13.2\x64\Lib\subprocess.py:416: in check_call
retcode = call(*popenargs, **kwargs)
C:\hostedtoolcache\windows\Python\3.13.2\x64\Lib\subprocess.py:397: in call
with Popen(*popenargs, **kwargs) as p:
C:\hostedtoolcache\windows\Python\3.13.2\x64\Lib\subprocess.py:1038: in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <Popen: returncode: None args: ['C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\...>
args = 'C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\tmp9jvy7uzk\\bin\\pip install -U pip'
executable = None, preexec_fn = None, close_fds = True, pass_fds = ()
cwd = None, env = None
startupinfo = <subprocess.STARTUPINFO object at 0x00000229BE5ACE50>
creationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = -1
c2pwrite = -1, errread = -1, errwrite = -1, unused_restore_signals = True
unused_gid = None, unused_gids = None, unused_uid = None, unused_umask = -1
unused_start_new_session = False, unused_process_group = -1
def _execute_child(self, args, executable, preexec_fn, close_fds,
pass_fds, cwd, env,
startupinfo, creationflags, shell,
p2cread, p2cwrite,
c2pread, c2pwrite,
errread, errwrite,
unused_restore_signals,
unused_gid, unused_gids, unused_uid,
unused_umask,
unused_start_new_session, unused_process_group):
"""Execute program (MS Windows version)"""
assert not pass_fds, "pass_fds not supported on Windows."
if isinstance(args, str):
pass
elif isinstance(args, bytes):
if shell:
raise TypeError('bytes args is not allowed on Windows')
args = list2cmdline([args])
elif isinstance(args, os.PathLike):
if shell:
raise TypeError('path-like args is not allowed when '
'shell is true')
args = list2cmdline([args])
else:
args = list2cmdline(args)
if executable is not None:
executable = os.fsdecode(executable)
# Process startup details
if startupinfo is None:
startupinfo = STARTUPINFO()
else:
# bpo-34044: Copy STARTUPINFO since it is modified above,
# so the caller can reuse it multiple times.
startupinfo = startupinfo.copy()
use_std_handles = -1 not in (p2cread, c2pwrite, errwrite)
if use_std_handles:
startupinfo.dwFlags |= _winapi.STARTF_USESTDHANDLES
startupinfo.hStdInput = p2cread
startupinfo.hStdOutput = c2pwrite
startupinfo.hStdError = errwrite
attribute_list = startupinfo.lpAttributeList
have_handle_list = bool(attribute_list and
"handle_list" in attribute_list and
attribute_list["handle_list"])
# If we were given an handle_list or need to create one
if have_handle_list or (use_std_handles and close_fds):
if attribute_list is None:
attribute_list = startupinfo.lpAttributeList = {}
handle_list = attribute_list["handle_list"] = \
list(attribute_list.get("handle_list", []))
if use_std_handles:
handle_list += [int(p2cread), int(c2pwrite), int(errwrite)]
handle_list[:] = self._filter_handle_list(handle_list)
if handle_list:
if not close_fds:
warnings.warn("startupinfo.lpAttributeList['handle_list'] "
"overriding close_fds", RuntimeWarning)
# When using the handle_list we always request to inherit
# handles but the only handles that will be inherited are
# the ones in the handle_list
close_fds = False
if shell:
startupinfo.dwFlags |= _winapi.STARTF_USESHOWWINDOW
startupinfo.wShowWindow = _winapi.SW_HIDE
if not executable:
# gh-101283: without a fully-qualified path, before Windows
# checks the system directories, it first looks in the
# application directory, and also the current directory if
# NeedCurrentDirectoryForExePathW(ExeName) is true, so try
# to avoid executing unqualified "cmd.exe".
comspec = os.environ.get('ComSpec')
if not comspec:
system_root = os.environ.get('SystemRoot', '')
comspec = os.path.join(system_root, 'System32', 'cmd.exe')
if not os.path.isabs(comspec):
raise FileNotFoundError('shell not found: neither %ComSpec% nor %SystemRoot% is set')
if os.path.isabs(comspec):
executable = comspec
else:
comspec = executable
args = '{} /c "{}"'.format (comspec, args)
if cwd is not None:
cwd = os.fsdecode(cwd)
sys.audit("subprocess.Popen", executable, args, cwd, env)
# Start the process
try:
> hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
# no special security
None, None,
int(not close_fds),
creationflags,
env,
cwd,
startupinfo)
E FileNotFoundError: [WinError 2] The system cannot find the file specified
C:\hostedtoolcache\windows\Python\3.13.2\x64\Lib\subprocess.py:1550: FileNotFoundError
Check failure on line 0 in dist/test-results/integration-1.xml
github-actions / Windows Test Results
pytest ► tests.integration.cli.commands.test_lock_foreign_platform_sdist ► test_lock_foreign_platform_sdist
Failed test found in:
dist/test-results/integration-1.xml
Error:
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_lock_fore...sers\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_lock_foreign_platform_sdist')
Raw output
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_lock_fore...sers\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_lock_foreign_platform_sdist')
@pytest.mark.skipif(
PY_VER < (3, 7), reason="The meson build system used in this test requires `Python>=3.7`."
)
def test_lock_foreign_platform_sdist(tmpdir):
# type: (Any) -> None
# When locking a requirement that only has an sdist available we need to build a wheel if the
# build backend does not support the PEP-517 `prepare_metadata_for_build_wheel` hook (
# https://peps.python.org/pep-0517/#prepare-metadata-for-build-wheel). The meson-python 0.16.0
# build backend does not support `prepare_metadata_for_build_wheel`; so we use it here to prove
# we can lock for foreign platforms when neither a wheel nor a build backend supporting
# `prepare_metadata_for_build_wheel` is available. The assumption is the same as for a
# `--style universal` lock: the metadata for a given project version is consistent across its
# distributions. We know the assumption is sometimes violated in the wild, but we embrace it
# here again as the only sane option.
project_dir = os.path.join(str(tmpdir), "project")
with safe_open(os.path.join(project_dir, "module.c"), "w") as fp:
fp.write(
dedent(
"""\
#include <Python.h>
static PyObject* foo(PyObject* self)
{
return PyUnicode_FromString("bar");
}
static PyMethodDef methods[] = {
{"foo", (PyCFunction)foo, METH_NOARGS, NULL},
{NULL, NULL, 0, NULL},
};
static struct PyModuleDef module = {
PyModuleDef_HEAD_INIT,
"module",
NULL,
-1,
methods,
};
PyMODINIT_FUNC PyInit_module(void)
{
return PyModule_Create(&module);
}
"""
)
)
with safe_open(os.path.join(project_dir, "meson.build"), "w") as fp:
fp.write(
dedent(
"""\
project('purelib-and-platlib', 'c')
py = import('python').find_installation(pure: false)
py.extension_module(
'module',
'module.c',
install: true,
)
"""
)
)
with safe_open(os.path.join(project_dir, "pyproject.toml"), "w") as fp:
fp.write(
dedent(
"""\
[build-system]
build-backend = "mesonpy"
requires = ["meson-python==0.16.0"]
[project]
name = "module"
version = "0.0.1"
requires-python = ">=3.7"
"""
)
)
# N.B.: Meson requires a VCS enclosing the project.
subprocess.check_call(["git", "init", project_dir])
subprocess.check_call(["git", "config", "user.email", "[email protected]"], cwd=project_dir)
subprocess.check_call(["git", "config", "user.name", "Your Name"], cwd=project_dir)
subprocess.check_call(["git", "add", "."], cwd=project_dir)
subprocess.check_call(
["git", "commit", "--no-gpg-sign", "-m", "Initial Commit."], cwd=project_dir
)
find_links = os.path.join(str(tmpdir), "find_links")
current_target = targets.current()
try_(
pep_517.build_sdist(
project_directory=project_dir,
dist_dir=find_links,
target=current_target,
resolver=ConfiguredResolver.default(),
)
)
complete_platform = data.path("platforms", "complete_platform_linux_armv7l_py312.json")
lock = os.path.join(str(tmpdir), "lock.json")
find_links_args = [
"--find-links",
find_links,
"--path-mapping",
"FIND_LINKS|{find_links}".format(find_links=find_links),
]
run_pex3(
"lock",
"create",
"module==0.0.1",
"--only-build",
"module",
"--complete-platform",
complete_platform,
"--indent",
"2",
"-o",
lock,
*find_links_args
> ).assert_success()
tests\integration\cli\commands\test_lock_foreign_platform_sdist.py:145:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = IntegResults(output='', error="[Errno 22] Invalid argument: '/C:/Users/runneradmin/AppData/Local/Temp/pytest-of-runneradmin/pytest-0/popen-gw0/test_lock_foreign_platfo-1ba6d0/find_links/module-0.0.1.tar.gz'\r\n", return_code=1)
expected_output_re = None, expected_error_re = None, re_flags = 0
def assert_success(
self,
expected_output_re=None, # type: Optional[str]
expected_error_re=None, # type: Optional[str]
re_flags=0, # type: int
):
# type: (...) -> None
assert (
> self.return_code == 0
), "integration test failed: return_code={}, output={}, error={}".format(
self.return_code, self.output, self.error
)
E AssertionError: integration test failed: return_code=1, output=, error=[Errno 22] Invalid argument: '/C:/Users/runneradmin/AppData/Local/Temp/pytest-of-runneradmin/pytest-0/popen-gw0/test_lock_foreign_platfo-1ba6d0/find_links/module-0.0.1.tar.gz'
testing\__init__.py:409: AssertionError
Check failure on line 0 in dist/test-results/integration-1.xml
github-actions / Windows Test Results
pytest ► tests.integration.venv_ITs.test_issue_1637 ► test_pex_path_collision_non_conflicting[zipapp]
Failed test found in:
dist/test-results/integration-1.xml
Error:
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_pex_path_...in\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_pex_path_collision_non_conflicting_zipapp_')
Raw output
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_pex_path_...in\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_pex_path_collision_non_conflicting_zipapp_')
execution_mode_args = []
@pytest.mark.parametrize(
["execution_mode_args"],
[
pytest.param([], id="zipapp"),
pytest.param(["--venv", "--venv-site-packages-copies"], id="venv (site-packages copies)"),
pytest.param(
["--venv", "--no-venv-site-packages-copies"],
id="venv (site-packages symlinks)",
),
],
)
def test_pex_path_collision_non_conflicting(
tmpdir, # type: Any
execution_mode_args, # type: List[str]
):
# type: (...) -> None
> app = create_pex(tmpdir, extra_args=execution_mode_args)
tests\integration\venv_ITs\test_issue_1637.py:118:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests\integration\venv_ITs\test_issue_1637.py:68: in create_pex
run_pex_command(args=args + list(extra_args)).assert_success()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = IntegResults(output='', error="pex: Hashing pex\r\npex: Hashing pex: 63.4ms\r\npex: Isolating pex\r\npex: Isolating pe... Using 4 parallel jobs to install 40 wheels: 3878.6ms\r\npex: Checking install: 9.3ms\r\n", return_code=1)
expected_output_re = None, expected_error_re = None, re_flags = 0
def assert_success(
self,
expected_output_re=None, # type: Optional[str]
expected_error_re=None, # type: Optional[str]
re_flags=0, # type: int
):
# type: (...) -> None
assert (
> self.return_code == 0
), "integration test failed: return_code={}, output={}, error={}".format(
self.return_code, self.output, self.error
)
E AssertionError: integration test failed: return_code=1, output=, error=pex: Hashing pex
E pex: Hashing pex: 63.4ms
E pex: Isolating pex
E pex: Isolating pex :: Extracting pex to C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw0\test_pex_path_collision_-c40280\pex_root\isolated\0\f393fa00dfed244723ee29899da9d0aa9544f95e
E pex: Isolating pex: 1627.9ms
E pex: Extracting pex to C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw0\test_pex_path_collision_-c40280\pex_root\isolated\0\f393fa00dfed244723ee29899da9d0aa9544f95e: 1625.8ms
E pex: Building pex
E pex: Building pex :: Adding distributions from pexes:
E pex: Building pex :: Adding distributions built from local projects and collecting their requirements:
E pex: Building pex :: Adding distributions built from local projects and collecting their requirements: :: Resolving requirements.
E pex: Building pex :: Resolving distributions for requirements: ansicolors==1.0.2
E pex: Building pex :: Resolving distributions for requirements: ansicolors==1.0.2 :: Resolving requirements.
E pex: Building pex :: Resolving distributions for requirements: ansicolors==1.0.2 :: Resolving requirements. :: Resolving for:
E cp313-cp313-win_amd64 interpreter at D:\a\pex\pex\repo\.tox\py313-pip25_0-integration\Scripts\python.exe
E pex: Using 2 parallel jobs to install 3 wheels
E pex: Using 2 parallel jobs to install 3 wheels: 1423.5ms
E pex: Elapsed time per install job:
E 1) [6252] 0.69s 1 wheel
E 2) [4592] 0.63s 2 wheels
E pex: Re-writing C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw0\test_pex_path_collision_-c40280\pex_root\venvs\1\cf89b2092f7eabca1cc45e2db0fc6f70ba31a204\fb46e18d7c7b820e573606d74ea7e95586bba0ee.lck.work\Scripts\activate
E pex: Re-writing C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw0\test_pex_path_collision_-c40280\pex_root\venvs\1\cf89b2092f7eabca1cc45e2db0fc6f70ba31a204\fb46e18d7c7b820e573606d74ea7e95586bba0ee.lck.work\Scripts\activate.bat
E pex: Re-writing C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw0\test_pex_path_collision_-c40280\pex_root\venvs\1\cf89b2092f7eabca1cc45e2db0fc6f70ba31a204\fb46e18d7c7b820e573606d74ea7e95586bba0ee.lck.work\Scripts\activate.fish
E D:\a\pex\pex\repo\pex\pex_bootstrapper.py:614: PEXWarning: The venv for C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw0\test_pex_path_collision_-c40280\pex_root\pip\1\25.0\pip.pex\f393fa00dfed244723ee29899da9d0aa9544f95e\no-extra-requirements at C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw0\test_pex_path_collision_-c40280\pex_root\venvs\1\cf89b2092f7eabca1cc45e2db0fc6f70ba31a204\fb46e18d7c7b820e573606d74ea7e95586bba0ee has script shebangs of '#!C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_pex_path_collision_-c40280\\pex_root\\venvs\\1\\s\\1674f1f4\\venv\\Scripts\\python.exe' with 166 characters. On some systems this may be too long and cause problems running the venv scripts. You may be able adjust PEX_ROOT from C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw0\test_pex_path_collision_-c40280\pex_root to a shorter path as a work-around.
E pex_warnings.warn(
E pex: Building pex :: Resolving distributions for requirements: ansicolors==1.0.2 :: Resolving requirements. :: Building distributions for:
E BuildRequest(target=LocalInterpreter('D:\\a\\pex\\pex\\repo\\.tox\\py313-pip25_0-integration\\Scripts\\python.exe'), source_path='D:.a.pex.pex.repo..tox.py313-pip25_0-integration.Scripts.python.exe\\ansicolors-1.0.2.tar.gz', fingerprint='7664530bb992e3847b61e3aab1580b4df9ed00c5898e80194a9933bc9c80950a')
E BuildRequest(target=LocalInterpreter('D:\\a\\pex\\pex\\repo\\.tox\\py313-pip25_0-integration\\Scripts\\python.exe'), source_path='D:.a.pex.pex.repo..tox.py313-pip25_0-integration.Scripts.python.exe\\cowsay-5.0.tar.gz', fingerprint='c00e02444f5bc7332826686bd44d963caabbaba9a804a63153822edce62bbbf3')
E BuildRequest(target=LocalInterpreter('D:\\a\\pex\\pex\\repo\\.tox\\py313-pip25_0-integration\\Scripts\\python.exe'), source_path='D:.a.pex.pex.repo..tox.py313-pip25_0-integration.Scripts.python.exe\\psutil-5.9.0.tar.gz', fingerprint='869842dbd66bb80c3217158e629d6fceaecc3a3166d3d1faee515b05dd26ca25')
E BuildRequest(target=LocalInterpreter('D:\\a\\pex\\pex\\repo\\.tox\\py313-pip25_0-integration\\Scripts\\python.exe'), source_path='D:.a.pex.pex.repo..tox.py313-pip25_0-integration.Scripts.python.exe\\v5.0.zip', fingerprint='7920e0b8037f35ae401710707cef9fcdbac7268e0bc5d527e627113a1b2965db')
E pex: Building D:.a.pex.pex.repo..tox.py313-pip25_0-integration.Scripts.python.exe\ansicolors-1.0.2.tar.gz to C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw0\test_pex_path_collision_-c40280\pex_root\built_wheels\0\sdists\ansicolors-1.0.2.tar.gz\7664530bb992e3847b61e3aab1580b4df9ed00c5898e80194a9933bc9c80950a\cp313-cp313-win_amd64
E pex: Building D:.a.pex.pex.repo..tox.py313-pip25_0-integration.Scripts.python.exe\cowsay-5.0.tar.gz to C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw0\test_pex_path_collision_-c40280\pex_root\built_wheels\0\sdists\cowsay-5.0.tar.gz\c00e02444f5bc7332826686bd44d963caabbaba9a804a63153822edce62bbbf3\cp313-cp313-win_amd64
E pex: Building D:.a.pex.pex.repo..tox.py313-pip25_0-integration.Scripts.python.exe\psutil-5.9.0.tar.gz to C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw0\test_pex_path_collision_-c40280\pex_root\built_wheels\0\sdists\psutil-5.9.0.tar.gz\869842dbd66bb80c3217158e629d6fceaecc3a3166d3d1faee515b05dd26ca25\cp313-cp313-win_amd64
E pex: Building D:.a.pex.pex.repo..tox.py313-pip25_0-integration.Scripts.python.exe\v5.0.zip to C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw0\test_pex_path_collision_-c40280\pex_root\built_wheels\0\sdists\v5.0.zip\7920e0b8037f35ae401710707cef9fcdbac7268e0bc5d527e627113a1b2965db\cp313-cp313-win_amd64
E pex: Building pex :: Resolving distributions for requirements: ansicolors==1.0.2 :: Resolving requirements. :: Calculating project names for direct requirements:
E ansicolors==1.0.2
E pex: Building pex :: Resolving distributions for requirements: ansicolors==1.0.2 :: Resolving requirements. :: Installing 42 distributions
E pex: Building pex :: Resolving distributions for requirements: ansicolors==1.0.2 :: Resolving requirements. :: Installing 42 distributions :: Using 4 parallel jobs to install 40 wheels
E pex: Elapsed time per install job:
E 1) [1880] 2.94s 10 wheels
E 2) [4664] 2.91s 9 wheels
E 3) [7056] 2.90s 9 wheels
E 4) [652] 2.54s 12 wheels
E pex: Building pex :: Resolving distributions for requirements: ansicolors==1.0.2 :: Resolving requirements. :: Checking install
E Failed to resolve compatible distributions for 1 target:
E 1: cp313-cp313-win_amd64 interpreter at D:\a\pex\pex\repo\.tox\py313-pip25_0-integration\Scripts\python.exe is not compatible with:
E foo 0.1.0 requires bar but no version was resolved
E pex: Building pex: 30807.6ms
E pex: Adding distributions from pexes: : 0.0ms
E pex: Adding distributions built from local projects and collecting their requirements: : 0.4ms
E pex: Resolving requirements.: 0.3ms
E pex: Resolving distributions for requirements: ansicolors==1.0.2: 30805.6ms
E pex: Resolving requirements.: 30805.5ms
E pex: Resolving for:
E cp313-cp313-win_amd64 interpreter at D:\a\pex\pex\repo\.tox\py313-pip25_0-integration\Scripts\python.exe: 16292.7ms
E pex: Building distributions for:
E BuildRequest(target=LocalInterpreter('D:\\a\\pex\\pex\\repo\\.tox\\py313-pip25_0-integration\\Scripts\\python.exe'), source_path='D:.a.pex.pex.repo..tox.py313-pip25_0-integration.Scripts.python.exe\\ansicolors-1.0.2.tar.gz', fingerprint='7664530bb992e3847b61e3aab1580b4df9ed00c5898e80194a9933bc9c80950a')
E BuildRequest(target=LocalInterpreter('D:\\a\\pex\\pex\\repo\\.tox\\py313-pip25_0-integration\\Scripts\\python.exe'), source_path='D:.a.pex.pex.repo..tox.py313-pip25_0-integration.Scripts.python.exe\\cowsay-5.0.tar.gz', fingerprint='c00e02444f5bc7332826686bd44d963caabbaba9a804a63153822edce62bbbf3')
E BuildRequest(target=LocalInterpreter('D:\\a\\pex\\pex\\repo\\.tox\\py313-pip25_0-integration\\Scripts\\python.exe'), source_path='D:.a.pex.pex.repo..tox.py313-pip25_0-integration.Scripts.python.exe\\psutil-5.9.0.tar.gz', fingerprint='869842dbd66bb80c3217158e629d6fceaecc3a3166d3d1faee515b05dd26ca25')
E BuildRequest(target=LocalInterpreter('D:\\a\\pex\\pex\\repo\\.tox\\py313-pip25_0-integration\\Scripts\\python.exe'), source_path='D:.a.pex.pex.repo..tox.py313-pip25_0-integration.Scripts.python.exe\\v5.0.zip', fingerprint='7920e0b8037f35ae401710707cef9fcdbac7268e0bc5d527e627113a1b2965db'): 10440.3ms
E pex: Calculating project names for direct requirements:
E ansicolors==1.0.2: 0.1ms
E pex: Installing 42 distributions: 3888.8ms
E pex: Using 4 parallel jobs to install 40 wheels: 3878.6ms
E pex: Checking install: 9.3ms
testing\__init__.py:409: AssertionError
Check failure on line 0 in dist/test-results/integration-1.xml
github-actions / Windows Test Results
pytest ► tests.integration.test_pex_import ► test_import_from_pex[UNZIPPED-zipapp]
Failed test found in:
dist/test-results/integration-1.xml
Error:
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_import_fr...\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_import_from_pex_UNZIPPED_zipapp_')
Raw output
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_import_fr...\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_import_from_pex_UNZIPPED_zipapp_')
layout = 'zipapp', execution_mode_args = []
pex_project_dir = 'D:/a/pex/pex/repo'
@pytest.mark.parametrize(
"layout", [pytest.param(layout, id=layout.value) for layout in Layout.values()]
)
@pytest.mark.parametrize(
"execution_mode_args", [pytest.param([], id="UNZIPPED"), pytest.param(["--venv"], id="VENV")]
)
def test_import_from_pex(
tmpdir, # type: Any
layout, # type: Layout.Value
execution_mode_args, # type: List[str]
pex_project_dir, # type: str
):
# type: (...) -> None
empty_env_dir = os.path.join(str(tmpdir), "empty_env")
empty_venv = Virtualenv.create(
venv_dir=empty_env_dir,
)
empty_python = empty_venv.interpreter.binary
src = os.path.join(str(tmpdir), "src")
with safe_open(os.path.join(src, "first_party.py"), "w") as fp:
fp.write(
dedent(
"""\
import colors
def warn(msg):
print(colors.yellow(msg))
"""
)
)
pex_root = os.path.join(str(tmpdir), "pex_root")
pex = os.path.join(str(tmpdir), "importable.pex")
is_venv = "--venv" in execution_mode_args
run_pex_command(
args=[
"--pex-root",
pex_root,
"--runtime-pex-root",
pex_root,
"-D",
src,
"ansicolors==1.1.8",
# Add pex to verify that it will shadow bootstrap pex
pex_project_dir,
"-o",
pex,
"--layout",
layout.value,
]
+ execution_mode_args,
).assert_success()
def execute_with_pex_on_pythonpath(code):
# type: (str) -> Text
return (
subprocess.check_output(
args=[empty_python, "-c", code], env=make_env(PYTHONPATH=pex), cwd=str(tmpdir)
)
.decode("utf-8")
.strip()
)
def get_third_party_prefix():
if is_venv:
return CacheDir.VENVS.path(pex_root=pex_root)
elif layout is Layout.LOOSE:
return os.path.join(pex, DEPS_DIR)
else:
return CacheDir.INSTALLED_WHEELS.path(pex_root=pex_root)
# Verify 3rd party code can be imported hermetically from the PEX.
alternate_pex_root = os.path.join(str(tmpdir), "alternate_pex_root")
with ENV.patch(PEX_ROOT=alternate_pex_root):
ambient_sys_path = [
resolved_distribution.fingerprinted_distribution.distribution.location
> for resolved_distribution in resolve_from_pex(
targets=Targets.from_target(targets.current()),
pex=pex,
requirements=["ansicolors==1.1.8"],
).distributions
]
tests\integration\test_pex_import.py:105:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pex\resolve\pex_repository_resolver.py:82: in resolve_from_pex
pex_env = PEXEnvironment.mount(pex, target=target)
pex\environment.py:250: in mount
installed_pex = ensure_installed(pex=pex, pex_root=pex_root, pex_hash=pex_hash)
pex\layout.py:704: in ensure_installed
return _ensure_installed(layout, pex_root, pex_hash)
pex\layout.py:362: in _ensure_installed
_ensure_distributions_installed(
pex\layout.py:294: in _ensure_distributions_installed
_ensure_distributions_installed_serial(
pex\layout.py:211: in _ensure_distributions_installed_serial
_install_distribution(item, layout, pex_info, work_dir, install_to)
pex\layout.py:188: in _install_distribution
with atomic_directory(spread_dest, source=source) as spread_chroot:
C:\hostedtoolcache\windows\Python\3.13.2\x64\Lib\contextlib.py:148: in __exit__
next(self.gen)
pex\atomic_directory.py:316: in atomic_directory
atomic_dir.finalize(source=source)
pex\atomic_directory.py:168: in finalize
raise e
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pex.atomic_directory.AtomicDirectory object at 0x0000012DD53ECBF0>
source = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_import_from_pex_UNZ-de...de6110d560e65b5dc8c86b50ad2fdaca\\ansicolors-1.0.2-py3-none-any.whl.lck.work\\.deps\\ansicolors-1.0.2-py3-none-any.whl'
def finalize(self, source=None):
# type: (Optional[str]) -> None
"""Rename `work_dir` to `target_dir` using `os.rename()`.
:param source: An optional source offset into the `work_dir`` to use for the atomic update
of `target_dir`. By default, the whole `work_dir` is used.
If a race is lost and `target_dir` already exists, the `target_dir` dir is left unchanged and
the `work_dir` directory will simply be removed.
"""
if self.is_finalized():
return
source = os.path.join(self._work_dir, source) if source else self._work_dir
try:
# Perform an atomic rename.
#
# Per the docs: https://docs.python.org/2.7/library/os.html#os.rename
#
# The operation may fail on some Unix flavors if src and dst are on different
# filesystems. If successful, the renaming will be an atomic operation (this is a
# POSIX requirement).
#
# We have satisfied the single filesystem constraint by arranging the `work_dir` to be a
# sibling of the `target_dir`.
> pex.fs.safe_rename(source, self._target_dir)
E FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_import_from_pex_UNZ-ded940\\alternate_pex_root\\installed_wheels\\0\\ef584bca530fb6d3ee136d38096025a0de6110d560e65b5dc8c86b50ad2fdaca\\ansicolors-1.0.2-py3-none-any.whl.lck.work\\.deps\\ansicolors-1.0.2-py3-none-any.whl' -> InstalledWheelDir(path=C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw0\test_import_from_pex_UNZ-ded940\alternate_pex_root\installed_wheels\0\ef584bca530fb6d3ee136d38096025a0de6110d560e65b5dc8c86b50ad2fdaca\ansicolors-1.0.2-py3-none-any.whl)
pex\atomic_directory.py:165: FileNotFoundError
Check failure on line 0 in dist/test-results/integration-1.xml
github-actions / Windows Test Results
pytest ► tests.integration.test_pex_import ► test_import_from_pex[VENV-packed]
Failed test found in:
dist/test-results/integration-1.xml
Error:
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_import_fr...ers\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_import_from_pex_VENV_packed_')
Raw output
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_import_fr...ers\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_import_from_pex_VENV_packed_')
layout = 'packed', execution_mode_args = ['--venv']
pex_project_dir = 'D:/a/pex/pex/repo'
@pytest.mark.parametrize(
"layout", [pytest.param(layout, id=layout.value) for layout in Layout.values()]
)
@pytest.mark.parametrize(
"execution_mode_args", [pytest.param([], id="UNZIPPED"), pytest.param(["--venv"], id="VENV")]
)
def test_import_from_pex(
tmpdir, # type: Any
layout, # type: Layout.Value
execution_mode_args, # type: List[str]
pex_project_dir, # type: str
):
# type: (...) -> None
empty_env_dir = os.path.join(str(tmpdir), "empty_env")
empty_venv = Virtualenv.create(
venv_dir=empty_env_dir,
)
empty_python = empty_venv.interpreter.binary
src = os.path.join(str(tmpdir), "src")
with safe_open(os.path.join(src, "first_party.py"), "w") as fp:
fp.write(
dedent(
"""\
import colors
def warn(msg):
print(colors.yellow(msg))
"""
)
)
pex_root = os.path.join(str(tmpdir), "pex_root")
pex = os.path.join(str(tmpdir), "importable.pex")
is_venv = "--venv" in execution_mode_args
run_pex_command(
args=[
"--pex-root",
pex_root,
"--runtime-pex-root",
pex_root,
"-D",
src,
"ansicolors==1.1.8",
# Add pex to verify that it will shadow bootstrap pex
pex_project_dir,
"-o",
pex,
"--layout",
layout.value,
]
+ execution_mode_args,
).assert_success()
def execute_with_pex_on_pythonpath(code):
# type: (str) -> Text
return (
subprocess.check_output(
args=[empty_python, "-c", code], env=make_env(PYTHONPATH=pex), cwd=str(tmpdir)
)
.decode("utf-8")
.strip()
)
def get_third_party_prefix():
if is_venv:
return CacheDir.VENVS.path(pex_root=pex_root)
elif layout is Layout.LOOSE:
return os.path.join(pex, DEPS_DIR)
else:
return CacheDir.INSTALLED_WHEELS.path(pex_root=pex_root)
# Verify 3rd party code can be imported hermetically from the PEX.
alternate_pex_root = os.path.join(str(tmpdir), "alternate_pex_root")
with ENV.patch(PEX_ROOT=alternate_pex_root):
ambient_sys_path = [
resolved_distribution.fingerprinted_distribution.distribution.location
> for resolved_distribution in resolve_from_pex(
targets=Targets.from_target(targets.current()),
pex=pex,
requirements=["ansicolors==1.1.8"],
).distributions
]
tests\integration\test_pex_import.py:105:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pex\resolve\pex_repository_resolver.py:84: in resolve_from_pex
fingerprinted_distributions = pex_env.resolve_dists(
pex\environment.py:617: in resolve_dists
self._update_candidate_distributions(
pex\environment.py:330: in _update_candidate_distributions
for fingerprinted_dist in distribution_iter:
pex\environment.py:324: in iter_distributions
distribution=Distribution.load(dist_path),
pex\dist_metadata.py:1016: in load
return cls(location=location, metadata=DistMetadata.load(location))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'pex.dist_metadata.DistMetadata'>
location = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_import_from_pex_VEN-d8...ernate_pex_root\\unzipped_pexes\\1\\16a5a04fdcd9ded191ad984f9ec363e4437ed534\\.deps\\ansicolors-1.0.2-py3-none-any.whl'
restrict_types_to = (), metadata_files = None
@classmethod
def load(
cls,
location, # type: Text
*restrict_types_to # type: MetadataType.Value
):
# type: (...) -> DistMetadata
metadata_files = load_metadata(location, restrict_types_to=restrict_types_to)
if metadata_files is None:
> raise MetadataError(
"Failed to determine project name and version for distribution at "
"{location}.".format(location=location)
)
E pex.dist_metadata.MetadataError: Failed to determine project name and version for distribution at C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw0\test_import_from_pex_VEN-d8fb10\alternate_pex_root\unzipped_pexes\1\16a5a04fdcd9ded191ad984f9ec363e4437ed534\.deps\ansicolors-1.0.2-py3-none-any.whl.
pex\dist_metadata.py:932: MetadataError
Check failure on line 0 in dist/test-results/integration-1.xml
github-actions / Windows Test Results
pytest ► tests.integration.test_pex_import ► test_import_from_pex[UNZIPPED-loose]
Failed test found in:
dist/test-results/integration-1.xml
Error:
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_import_fr...\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_import_from_pex_UNZIPPED_loose_')
Raw output
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_import_fr...\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_import_from_pex_UNZIPPED_loose_')
layout = 'loose', execution_mode_args = []
pex_project_dir = 'D:/a/pex/pex/repo'
@pytest.mark.parametrize(
"layout", [pytest.param(layout, id=layout.value) for layout in Layout.values()]
)
@pytest.mark.parametrize(
"execution_mode_args", [pytest.param([], id="UNZIPPED"), pytest.param(["--venv"], id="VENV")]
)
def test_import_from_pex(
tmpdir, # type: Any
layout, # type: Layout.Value
execution_mode_args, # type: List[str]
pex_project_dir, # type: str
):
# type: (...) -> None
empty_env_dir = os.path.join(str(tmpdir), "empty_env")
empty_venv = Virtualenv.create(
venv_dir=empty_env_dir,
)
empty_python = empty_venv.interpreter.binary
src = os.path.join(str(tmpdir), "src")
with safe_open(os.path.join(src, "first_party.py"), "w") as fp:
fp.write(
dedent(
"""\
import colors
def warn(msg):
print(colors.yellow(msg))
"""
)
)
pex_root = os.path.join(str(tmpdir), "pex_root")
pex = os.path.join(str(tmpdir), "importable.pex")
is_venv = "--venv" in execution_mode_args
run_pex_command(
args=[
"--pex-root",
pex_root,
"--runtime-pex-root",
pex_root,
"-D",
src,
"ansicolors==1.1.8",
# Add pex to verify that it will shadow bootstrap pex
pex_project_dir,
"-o",
pex,
"--layout",
layout.value,
]
+ execution_mode_args,
> ).assert_success()
tests\integration\test_pex_import.py:80:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = IntegResults(output='', error='pex: Hashing pex\r\npex: Hashing pex: 61.9ms\r\npex: Isolating pex\r\npex: Isolating pe...\\\\\\\\Temp\\\\\\\\tmpjflwunu7\\\\\\\\.deps\\\\\\\\pyproject_metadata-0.9.0-py3-none-any.whl\'")]\r\n', return_code=1)
expected_output_re = None, expected_error_re = None, re_flags = 0
def assert_success(
self,
expected_output_re=None, # type: Optional[str]
expected_error_re=None, # type: Optional[str]
re_flags=0, # type: int
):
# type: (...) -> None
assert (
> self.return_code == 0
), "integration test failed: return_code={}, output={}, error={}".format(
self.return_code, self.output, self.error
)
E AssertionError: integration test failed: return_code=1, output=, error=pex: Hashing pex
E pex: Hashing pex: 61.9ms
E pex: Isolating pex
E pex: Isolating pex :: Extracting pex to C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw0\test_import_from_pex_UNZ-94c770\pex_root\isolated\0\f393fa00dfed244723ee29899da9d0aa9544f95e
E pex: Isolating pex: 1435.0ms
E pex: Extracting pex to C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw0\test_import_from_pex_UNZ-94c770\pex_root\isolated\0\f393fa00dfed244723ee29899da9d0aa9544f95e: 1432.9ms
E pex: Building pex
E pex: Building pex :: Adding distributions from pexes:
E pex: Building pex :: Adding distributions built from local projects and collecting their requirements:
E pex: Building pex :: Adding distributions built from local projects and collecting their requirements: :: Resolving requirements.
E pex: Building pex :: Resolving distributions for requirements: ansicolors==1.1.8 D:/a/pex/pex/repo
E pex: Building pex :: Resolving distributions for requirements: ansicolors==1.1.8 D:/a/pex/pex/repo :: Resolving requirements.
E pex: Building pex :: Resolving distributions for requirements: ansicolors==1.1.8 D:/a/pex/pex/repo :: Resolving requirements. :: Resolving for:
E cp313-cp313-win_amd64 interpreter at D:\a\pex\pex\repo\.tox\py313-pip25_0-integration\Scripts\python.exe
E pex: Using 2 parallel jobs to install 3 wheels
E pex: Using 2 parallel jobs to install 3 wheels: 3493.9ms
E pex: Elapsed time per install job:
E 1) [5616] 2.73s 1 wheel
E 2) [2192] 2.10s 2 wheels
E pex: Re-writing C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw0\test_import_from_pex_UNZ-94c770\pex_root\venvs\1\67c482b1618dc696fdd717d24623d756086d3535\fb46e18d7c7b820e573606d74ea7e95586bba0ee.lck.work\Scripts\activate
E pex: Re-writing C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw0\test_import_from_pex_UNZ-94c770\pex_root\venvs\1\67c482b1618dc696fdd717d24623d756086d3535\fb46e18d7c7b820e573606d74ea7e95586bba0ee.lck.work\Scripts\activate.bat
E pex: Re-writing C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw0\test_import_from_pex_UNZ-94c770\pex_root\venvs\1\67c482b1618dc696fdd717d24623d756086d3535\fb46e18d7c7b820e573606d74ea7e95586bba0ee.lck.work\Scripts\activate.fish
E D:\a\pex\pex\repo\pex\pex_bootstrapper.py:614: PEXWarning: The venv for C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw0\test_import_from_pex_UNZ-94c770\pex_root\pip\1\25.0\pip.pex\f393fa00dfed244723ee29899da9d0aa9544f95e\no-extra-requirements at C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw0\test_import_from_pex_UNZ-94c770\pex_root\venvs\1\67c482b1618dc696fdd717d24623d756086d3535\fb46e18d7c7b820e573606d74ea7e95586bba0ee has script shebangs of '#!C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_import_from_pex_UNZ-94c770\\pex_root\\venvs\\1\\s\\911bc45f\\venv\\Scripts\\python.exe' with 166 characters. On some systems this may be too long and cause problems running the venv scripts. You may be able adjust PEX_ROOT from C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw0\test_import_from_pex_UNZ-94c770\pex_root to a shorter path as a work-around.
E pex_warnings.warn(
E pex: Building pex :: Resolving distributions for requirements: ansicolors==1.1.8 D:/a/pex/pex/repo :: Resolving requirements. :: Building distributions for:
E BuildRequest(target=LocalInterpreter('D:\\a\\pex\\pex\\repo\\.tox\\py313-pip25_0-integration\\Scripts\\python.exe'), source_path='D:\\a\\pex\\pex\\repo', fingerprint='7a3ac0a841177fd70f0bd70da2ddb77d557b0b6394b3610dff927c5315c92b7a')
E BuildRequest(target=LocalInterpreter('D:\\a\\pex\\pex\\repo\\.tox\\py313-pip25_0-integration\\Scripts\\python.exe'), source_path='D:.a.pex.pex.repo..tox.py313-pip25_0-integration.Scripts.python.exe\\ansicolors-1.0.2.tar.gz', fingerprint='7664530bb992e3847b61e3aab1580b4df9ed00c5898e80194a9933bc9c80950a')
E pex: Building D:\a\pex\pex\repo to C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw0\test_import_from_pex_UNZ-94c770\pex_root\built_wheels\0\local_projects\repo\7a3ac0a841177fd70f0bd70da2ddb77d557b0b6394b3610dff927c5315c92b7a\cp313-cp313-win_amd64
E pex: Building D:.a.pex.pex.repo..tox.py313-pip25_0-integration.Scripts.python.exe\ansicolors-1.0.2.tar.gz to C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw0\test_import_from_pex_UNZ-94c770\pex_root\built_wheels\0\sdists\ansicolors-1.0.2.tar.gz\7664530bb992e3847b61e3aab1580b4df9ed00c5898e80194a9933bc9c80950a\cp313-cp313-win_amd64
E pex: Building pex :: Resolving distributions for requirements: ansicolors==1.1.8 D:/a/pex/pex/repo :: Resolving requirements. :: Calculating project names for direct requirements:
E ansicolors==1.1.8
E D:/a/pex/pex/repo
E pex: Building pex :: Resolving distributions for requirements: ansicolors==1.1.8 D:/a/pex/pex/repo :: Resolving requirements. :: Installing 8 distributions
E pex: Building pex :: Resolving distributions for requirements: ansicolors==1.1.8 D:/a/pex/pex/repo :: Resolving requirements. :: Installing 8 distributions :: Using 2 parallel jobs to install 8 wheels
E pex: Elapsed time per install job:
E 1) [6120] 1.07s 1 wheel
E 2) [6544] 0.65s 7 wheels
E pex: Building pex :: Resolving distributions for requirements: ansicolors==1.1.8 D:/a/pex/pex/repo :: Resolving requirements. :: Checking install
E pex: Building pex :: Configuring PEX dependencies
E pex: Building pex: 55596.1ms
E pex: Adding distributions from pexes: : 0.0ms
E pex: Adding distributions built from local projects and collecting their requirements: : 0.4ms
E pex: Resolving requirements.: 0.3ms
E pex: Resolving distributions for requirements: ansicolors==1.1.8 D:/a/pex/pex/repo: 55586.3ms
E pex: Resolving requirements.: 55586.1ms
E pex: Resolving for:
E cp313-cp313-win_amd64 interpreter at D:\a\pex\pex\repo\.tox\py313-pip25_0-integration\Scripts\python.exe: 34477.1ms
E pex: Building distributions for:
E BuildRequest(target=LocalInterpreter('D:\\a\\pex\\pex\\repo\\.tox\\py313-pip25_0-integration\\Scripts\\python.exe'), source_path='D:\\a\\pex\\pex\\repo', fingerprint='7a3ac0a841177fd70f0bd70da2ddb77d557b0b6394b3610dff927c5315c92b7a')
E BuildRequest(target=LocalInterpreter('D:\\a\\pex\\pex\\repo\\.tox\\py313-pip25_0-integration\\Scripts\\python.exe'), source_path='D:.a.pex.pex.repo..tox.py313-pip25_0-integration.Scripts.python.exe\\ansicolors-1.0.2.tar.gz', fingerprint='7664530bb992e3847b61e3aab1580b4df9ed00c5898e80194a9933bc9c80950a'): 18714.5ms
E pex: Calculating project names for direct requirements:
E ansicolors==1.1.8
E D:/a/pex/pex/repo: 0.6ms
E pex: Installing 8 distributions: 1775.6ms
E pex: Using 2 parallel jobs to install 8 wheels: 1774.5ms
E pex: Checking install: 1.9ms
E pex: Configuring PEX dependencies: 7.5ms
E Saving PEX file to C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw0\test_import_from_pex_UNZ-94c770\importable.pex
E Traceback (most recent call last):
E File "D:\a\pex\pex\repo\pex\result.py", line 105, in catch
E return func(*args, **kwargs)
E File "D:\a\pex\pex\repo\pex\bin\pex.py", line 1356, in do_main
E pex_builder.build(
E ~~~~~~~~~~~~~~~~~^
E pex_file,
E ^^^^^^^^^
E ...<4 lines>...
E check=options.check,
E ^^^^^^^^^^^^^^^^^^^^
E )
E ^
E File "D:\a\pex\pex\repo\pex\pex_builder.py", line 645, in build
E shutil.copytree(
E ~~~~~~~~~~~~~~~^
E self.path(),
E ^^^^^^^^^^^^
E tmp_pex,
E ^^^^^^^^
E ignore=None if bytecode_compile else lambda _, names: filter(is_pyc_file, names),
E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E )
E ^
E File "C:\hostedtoolcache\windows\Python\3.13.2\x64\Lib\shutil.py", line 593, in copytree
E return _copytree(entries=entries, src=src, dst=dst, symlinks=symlinks,
E ignore=ignore, copy_function=copy_function,
E ignore_dangling_symlinks=ignore_dangling_symlinks,
E dirs_exist_ok=dirs_exist_ok)
E File "C:\hostedtoolcache\windows\Python\3.13.2\x64\Lib\shutil.py", line 547, in _copytree
E raise Error(errors)
E shutil.Error: [('C:\\Users\\runneradmin\\AppData\\Local\\Temp\\tmpjflwunu7\\.deps\\ansicolors-1.0.2-py3-none-any.whl', 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_import_from_pex_UNZ-94c770\\importable.pex~\\.deps\\ansicolors-1.0.2-py3-none-any.whl', "[WinError 5] Access is denied: 'C:\\\\Users\\\\runneradmin\\\\AppData\\\\Local\\\\Temp\\\\tmpjflwunu7\\\\.deps\\\\ansicolors-1.0.2-py3-none-any.whl'"), ('C:\\Users\\runneradmin\\AppData\\Local\\Temp\\tmpjflwunu7\\.deps\\ansicolors-1.1.8-py2.py3-none-any.whl', 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_import_from_pex_UNZ-94c770\\importable.pex~\\.deps\\ansicolors-1.1.8-py2.py3-none-any.whl', "[WinError 5] Access is denied: 'C:\\\\Users\\\\runneradmin\\\\AppData\\\\Local\\\\Temp\\\\tmpjflwunu7\\\\.deps\\\\ansicolors-1.1.8-py2.py3-none-any.whl'"), ('C:\\Users\\runneradmin\\AppData\\Local\\Temp\\tmpjflwunu7\\.deps\\meson_python-0.16.0-py3-none-any.whl', 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_import_from_pex_UNZ-94c770\\importable.pex~\\.deps\\meson_python-0.16.0-py3-none-any.whl', "[WinError 5] Access is denied: 'C:\\\\Users\\\\runneradmin\\\\AppData\\\\Local\\\\Temp\\\\tmpjflwunu7\\\\.deps\\\\meson_python-0.16.0-py3-none-any.whl'"), ('C:\\Users\\runneradmin\\AppData\\Local\\Temp\\tmpjflwunu7\\.deps\\packaging-24.2-py3-none-any.whl', 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_import_from_pex_UNZ-94c770\\importable.pex~\\.deps\\packaging-24.2-py3-none-any.whl', "[WinError 5] Access is denied: 'C:\\\\Users\\\\runneradmin\\\\AppData\\\\Local\\\\Temp\\\\tmpjflwunu7\\\\.deps\\\\packaging-24.2-py3-none-any.whl'"), ('C:\\Users\\runneradmin\\AppData\\Local\\Temp\\tmpjflwunu7\\.deps\\pex-2.33.2-py2.py3-none-any.whl', 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_import_from_pex_UNZ-94c770\\importable.pex~\\.deps\\pex-2.33.2-py2.py3-none-any.whl', "[WinError 5] Access is denied: 'C:\\\\Users\\\\runneradmin\\\\AppData\\\\Local\\\\Temp\\\\tmpjflwunu7\\\\.deps\\\\pex-2.33.2-py2.py3-none-any.whl'"), ('C:\\Users\\runneradmin\\AppData\\Local\\Temp\\tmpjflwunu7\\.deps\\poetry_core-2.1.1-py3-none-any.whl', 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_import_from_pex_UNZ-94c770\\importable.pex~\\.deps\\poetry_core-2.1.1-py3-none-any.whl', "[WinError 5] Access is denied: 'C:\\\\Users\\\\runneradmin\\\\AppData\\\\Local\\\\Temp\\\\tmpjflwunu7\\\\.deps\\\\poetry_core-2.1.1-py3-none-any.whl'"), ('C:\\Users\\runneradmin\\AppData\\Local\\Temp\\tmpjflwunu7\\.deps\\pyproject_metadata-0.9.0-py3-none-any.whl', 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_import_from_pex_UNZ-94c770\\importable.pex~\\.deps\\pyproject_metadata-0.9.0-py3-none-any.whl', "[WinError 5] Access is denied: 'C:\\\\Users\\\\runneradmin\\\\AppData\\\\Local\\\\Temp\\\\tmpjflwunu7\\\\.deps\\\\pyproject_metadata-0.9.0-py3-none-any.whl'")]
E [('C:\\Users\\runneradmin\\AppData\\Local\\Temp\\tmpjflwunu7\\.deps\\ansicolors-1.0.2-py3-none-any.whl', 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_import_from_pex_UNZ-94c770\\importable.pex~\\.deps\\ansicolors-1.0.2-py3-none-any.whl', "[WinError 5] Access is denied: 'C:\\\\Users\\\\runneradmin\\\\AppData\\\\Local\\\\Temp\\\\tmpjflwunu7\\\\.deps\\\\ansicolors-1.0.2-py3-none-any.whl'"), ('C:\\Users\\runneradmin\\AppData\\Local\\Temp\\tmpjflwunu7\\.deps\\ansicolors-1.1.8-py2.py3-none-any.whl', 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_import_from_pex_UNZ-94c770\\importable.pex~\\.deps\\ansicolors-1.1.8-py2.py3-none-any.whl', "[WinError 5] Access is denied: 'C:\\\\Users\\\\runneradmin\\\\AppData\\\\Local\\\\Temp\\\\tmpjflwunu7\\\\.deps\\\\ansicolors-1.1.8-py2.py3-none-any.whl'"), ('C:\\Users\\runneradmin\\AppData\\Local\\Temp\\tmpjflwunu7\\.deps\\meson_python-0.16.0-py3-none-any.whl', 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_import_from_pex_UNZ-94c770\\importable.pex~\\.deps\\meson_python-0.16.0-py3-none-any.whl', "[WinError 5] Access is denied: 'C:\\\\Users\\\\runneradmin\\\\AppData\\\\Local\\\\Temp\\\\tmpjflwunu7\\\\.deps\\\\meson_python-0.16.0-py3-none-any.whl'"), ('C:\\Users\\runneradmin\\AppData\\Local\\Temp\\tmpjflwunu7\\.deps\\packaging-24.2-py3-none-any.whl', 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_import_from_pex_UNZ-94c770\\importable.pex~\\.deps\\packaging-24.2-py3-none-any.whl', "[WinError 5] Access is denied: 'C:\\\\Users\\\\runneradmin\\\\AppData\\\\Local\\\\Temp\\\\tmpjflwunu7\\\\.deps\\\\packaging-24.2-py3-none-any.whl'"), ('C:\\Users\\runneradmin\\AppData\\Local\\Temp\\tmpjflwunu7\\.deps\\pex-2.33.2-py2.py3-none-any.whl', 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_import_from_pex_UNZ-94c770\\importable.pex~\\.deps\\pex-2.33.2-py2.py3-none-any.whl', "[WinError 5] Access is denied: 'C:\\\\Users\\\\runneradmin\\\\AppData\\\\Local\\\\Temp\\\\tmpjflwunu7\\\\.deps\\\\pex-2.33.2-py2.py3-none-any.whl'"), ('C:\\Users\\runneradmin\\AppData\\Local\\Temp\\tmpjflwunu7\\.deps\\poetry_core-2.1.1-py3-none-any.whl', 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_import_from_pex_UNZ-94c770\\importable.pex~\\.deps\\poetry_core-2.1.1-py3-none-any.whl', "[WinError 5] Access is denied: 'C:\\\\Users\\\\runneradmin\\\\AppData\\\\Local\\\\Temp\\\\tmpjflwunu7\\\\.deps\\\\poetry_core-2.1.1-py3-none-any.whl'"), ('C:\\Users\\runneradmin\\AppData\\Local\\Temp\\tmpjflwunu7\\.deps\\pyproject_metadata-0.9.0-py3-none-any.whl', 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_import_from_pex_UNZ-94c770\\importable.pex~\\.deps\\pyproject_metadata-0.9.0-py3-none-any.whl', "[WinError 5] Access is denied: 'C:\\\\Users\\\\runneradmin\\\\AppData\\\\Local\\\\Temp\\\\tmpjflwunu7\\\\.deps\\\\pyproject_metadata-0.9.0-py3-none-any.whl'")]
testing\__init__.py:409: AssertionError
Check failure on line 0 in dist/test-results/integration-1.xml
github-actions / Windows Test Results
pytest ► tests.integration.test_issue_1560 ► test_build_isolation[3.9.13]
Failed test found in:
dist/test-results/integration-1.xml
Error:
venv_factory = VenvFactory(python_version='3.9.13', _factory=<function all_python_venvs.<locals>.<genexpr>.<lambda> at 0x00000229BDF18220>)
Raw output
venv_factory = VenvFactory(python_version='3.9.13', _factory=<function all_python_venvs.<locals>.<genexpr>.<lambda> at 0x00000229BDF18220>)
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_build_isolation_3_9_13_0', symlink=None)
@pytest.mark.parametrize(
"venv_factory",
[
pytest.param(venv_factory, id=venv_factory.python_version)
for venv_factory in all_python_venvs()
],
)
def test_build_isolation(
venv_factory, # type: VenvFactory
tmpdir, # type: Tempdir
):
# type: (...) -> None
project_dir = tmpdir.join("project")
build_requirements = ["flit_core"]
with safe_open(os.path.join(project_dir, "pyproject.toml"), "w") as fp:
fp.write(
dedent(
"""\
[build-system]
requires = {build_requirements!r}
build-backend = "flit_core.buildapi"
[project]
name = "foo"
version = "0.0.1"
description = "Quality bars."
"""
).format(build_requirements=build_requirements)
)
touch(os.path.join(project_dir, "foo.py"))
> python, pip = venv_factory.create_venv()
tests\integration\test_issue_1560.py:59:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
testing\__init__.py:765: in create_venv
venv = self._factory()
testing\__init__.py:774: in <lambda>
factory=lambda: ensure_python_venv(version, system_site_packages=system_site_packages),
testing\__init__.py:691: in ensure_python_venv
subprocess.check_call(args=[pip, "install", "-U", "pip"])
testing\subprocess.py:61: in check_call
subprocess.check_call(args=_safe_args(args), **kwargs)
C:\hostedtoolcache\windows\Python\3.13.2\x64\Lib\subprocess.py:416: in check_call
retcode = call(*popenargs, **kwargs)
C:\hostedtoolcache\windows\Python\3.13.2\x64\Lib\subprocess.py:397: in call
with Popen(*popenargs, **kwargs) as p:
C:\hostedtoolcache\windows\Python\3.13.2\x64\Lib\subprocess.py:1038: in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <Popen: returncode: None args: ['C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\...>
args = 'C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\tmpxv_yqy84\\bin\\pip install -U pip'
executable = None, preexec_fn = None, close_fds = True, pass_fds = ()
cwd = None, env = None
startupinfo = <subprocess.STARTUPINFO object at 0x00000229BE6D1050>
creationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = -1
c2pwrite = -1, errread = -1, errwrite = -1, unused_restore_signals = True
unused_gid = None, unused_gids = None, unused_uid = None, unused_umask = -1
unused_start_new_session = False, unused_process_group = -1
def _execute_child(self, args, executable, preexec_fn, close_fds,
pass_fds, cwd, env,
startupinfo, creationflags, shell,
p2cread, p2cwrite,
c2pread, c2pwrite,
errread, errwrite,
unused_restore_signals,
unused_gid, unused_gids, unused_uid,
unused_umask,
unused_start_new_session, unused_process_group):
"""Execute program (MS Windows version)"""
assert not pass_fds, "pass_fds not supported on Windows."
if isinstance(args, str):
pass
elif isinstance(args, bytes):
if shell:
raise TypeError('bytes args is not allowed on Windows')
args = list2cmdline([args])
elif isinstance(args, os.PathLike):
if shell:
raise TypeError('path-like args is not allowed when '
'shell is true')
args = list2cmdline([args])
else:
args = list2cmdline(args)
if executable is not None:
executable = os.fsdecode(executable)
# Process startup details
if startupinfo is None:
startupinfo = STARTUPINFO()
else:
# bpo-34044: Copy STARTUPINFO since it is modified above,
# so the caller can reuse it multiple times.
startupinfo = startupinfo.copy()
use_std_handles = -1 not in (p2cread, c2pwrite, errwrite)
if use_std_handles:
startupinfo.dwFlags |= _winapi.STARTF_USESTDHANDLES
startupinfo.hStdInput = p2cread
startupinfo.hStdOutput = c2pwrite
startupinfo.hStdError = errwrite
attribute_list = startupinfo.lpAttributeList
have_handle_list = bool(attribute_list and
"handle_list" in attribute_list and
attribute_list["handle_list"])
# If we were given an handle_list or need to create one
if have_handle_list or (use_std_handles and close_fds):
if attribute_list is None:
attribute_list = startupinfo.lpAttributeList = {}
handle_list = attribute_list["handle_list"] = \
list(attribute_list.get("handle_list", []))
if use_std_handles:
handle_list += [int(p2cread), int(c2pwrite), int(errwrite)]
handle_list[:] = self._filter_handle_list(handle_list)
if handle_list:
if not close_fds:
warnings.warn("startupinfo.lpAttributeList['handle_list'] "
"overriding close_fds", RuntimeWarning)
# When using the handle_list we always request to inherit
# handles but the only handles that will be inherited are
# the ones in the handle_list
close_fds = False
if shell:
startupinfo.dwFlags |= _winapi.STARTF_USESHOWWINDOW
startupinfo.wShowWindow = _winapi.SW_HIDE
if not executable:
# gh-101283: without a fully-qualified path, before Windows
# checks the system directories, it first looks in the
# application directory, and also the current directory if
# NeedCurrentDirectoryForExePathW(ExeName) is true, so try
# to avoid executing unqualified "cmd.exe".
comspec = os.environ.get('ComSpec')
if not comspec:
system_root = os.environ.get('SystemRoot', '')
comspec = os.path.join(system_root, 'System32', 'cmd.exe')
if not os.path.isabs(comspec):
raise FileNotFoundError('shell not found: neither %ComSpec% nor %SystemRoot% is set')
if os.path.isabs(comspec):
executable = comspec
else:
comspec = executable
args = '{} /c "{}"'.format (comspec, args)
if cwd is not None:
cwd = os.fsdecode(cwd)
sys.audit("subprocess.Popen", executable, args, cwd, env)
# Start the process
try:
> hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
# no special security
None, None,
int(not close_fds),
creationflags,
env,
cwd,
startupinfo)
E FileNotFoundError: [WinError 2] The system cannot find the file specified
C:\hostedtoolcache\windows\Python\3.13.2\x64\Lib\subprocess.py:1550: FileNotFoundError
Check failure on line 0 in dist/test-results/integration-1.xml
github-actions / Windows Test Results
pytest ► tests.integration.cli.commands.test_vcs_lock ► test_subdir
Failed test found in:
dist/test-results/integration-1.xml
Error:
test_tool = TestTool(tmpdir='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_subdir0')
Raw output
test_tool = TestTool(tmpdir='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_subdir0')
@pytest.mark.skipif(sys.version_info[:2] < (3, 6), reason="The library under test uses f-strings.")
def test_subdir(test_tool):
# type: (TestTool) -> None
# This is a trick you cannot do with a direct reference VCS URL.
> pex = test_tool.create_locked_pex(
"git+https://github.com/SerialDev/sdev_py_utils.git@bd4d36a0"
"#egg=sdev_logging_utils&subdirectory=sdev_logging_utils"
)
tests\integration\cli\commands\test_vcs_lock.py:162:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests\integration\cli\commands\test_vcs_lock.py:71: in create_locked_pex
return self.create_pex(self.create_lock(*lock_args))
tests\integration\cli\commands\test_vcs_lock.py:44: in create_lock
run_pex3("lock", "create", "--pex-root", self.pex_root, "-o", lock, *args).assert_success()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = IntegResults(output='', error="D:\\a\\pex\\pex\\repo\\pex\\pex_bootstrapper.py:614: PEXWarning: The venv for C:\\Users...\.tmp\\pip-download-wkh2_zn_\\sdev-logging-utils_7358535a396e40a8be675b06efa076dc' exited with 128\r\n", return_code=1)
expected_output_re = None, expected_error_re = None, re_flags = 0
def assert_success(
self,
expected_output_re=None, # type: Optional[str]
expected_error_re=None, # type: Optional[str]
re_flags=0, # type: int
):
# type: (...) -> None
assert (
> self.return_code == 0
), "integration test failed: return_code={}, output={}, error={}".format(
self.return_code, self.output, self.error
)
E AssertionError: integration test failed: return_code=1, output=, error=D:\a\pex\pex\repo\pex\pex_bootstrapper.py:614: PEXWarning: The venv for C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw1\test_subdir0\pex_root\pip\1\25.0\pip.pex\f393fa00dfed244723ee29899da9d0aa9544f95e\no-extra-requirements at C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw1\test_subdir0\pex_root\venvs\1\4c051a32ec3e82084fe753124cfb4f2623944060\fb46e18d7c7b820e573606d74ea7e95586bba0ee has script shebangs of '#!C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_subdir0\\pex_root\\venvs\\1\\s\\66e169b9\\venv\\Scripts\\python.exe' with 147 characters. On some systems this may be too long and cause problems running the venv scripts. You may be able adjust PEX_ROOT from C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw1\test_subdir0\pex_root to a shorter path as a work-around.
E pex_warnings.warn(
E pid 6460 -> C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw1\test_subdir0\pex_root\venvs\1\4c051a32ec3e82084fe753124cfb4f2623944060\fb46e18d7c7b820e573606d74ea7e95586bba0ee\Scripts\python.exe C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw1\test_subdir0\pex_root\venvs\1\4c051a32ec3e82084fe753124cfb4f2623944060\fb46e18d7c7b820e573606d74ea7e95586bba0ee\pex --disable-pip-version-check --exists-action a --no-input --log C:\Users\runneradmin\AppData\Local\Temp\pex-pip-log.7npx1gog\pip.log -q --cache-dir C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw1\test_subdir0\pex_root\pip\1\25.0\pip_cache download --dest D:.a.pex.pex.repo..tox.py313-pip25_0-integration.Scripts.python.exe git+https://github.com/SerialDev/sdev_py_utils.git@bd4d36a0#egg=sdev_logging_utils&subdirectory=sdev_logging_utils --retries 5 --timeout 15 exited with 1 and STDERR:
E pip: error: subprocess-exited-with-error
E pip:
E pip: × git clone --filter=blob:none --quiet https://github.com/SerialDev/sdev_py_utils.git 'C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw1\test_subdir0\pex_root\pip\1\25.0\pip_cache\.tmp\pip-download-wkh2_zn_\sdev-logging-utils_7358535a396e40a8be675b06efa076dc' did not run successfully.
E pip: │ exit code: 128
E pip: ╰─> See above for output.
E pip:
E pip: note: This error originates from a subprocess, and is likely not a problem with pip.
E pip: error: subprocess-exited-with-error
E pip:
E pip: × git clone --filter=blob:none --quiet https://github.com/SerialDev/sdev_py_utils.git 'C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw1\test_subdir0\pex_root\pip\1\25.0\pip_cache\.tmp\pip-download-wkh2_zn_\sdev-logging-utils_7358535a396e40a8be675b06efa076dc' did not run successfully.
E pip: │ exit code: 128
E pip: ╰─> See above for output.
E pip:
E pip: note: This error originates from a subprocess, and is likely not a problem with pip.
E pip: Running command git clone --filter=blob:none --quiet https://github.com/SerialDev/sdev_py_utils.git 'C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw1\test_subdir0\pex_root\pip\1\25.0\pip_cache\.tmp\pip-download-wkh2_zn_\sdev-logging-utils_7358535a396e40a8be675b06efa076dc'
E pip: fatal: cannot write keep file 'C:/Users/runneradmin/AppData/Local/Temp/pytest-of-runneradmin/pytest-0/popen-gw1/test_subdir0/pex_root/pip/1/25.0/pip_cache/.tmp/pip-download-wkh2_zn_/sdev-logging-utils_7358535a396e40a8be675b06efa076dc/.git/objects/pack/pack-17114d388e85fc8c488976284dde0792659d43ac.keep': Filename too long
E pip: fatal: fetch-pack: invalid index-pack output
E pip: ERROR: git clone --filter=blob:none --quiet https://github.com/SerialDev/sdev_py_utils.git 'C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw1\test_subdir0\pex_root\pip\1\25.0\pip_cache\.tmp\pip-download-wkh2_zn_\sdev-logging-utils_7358535a396e40a8be675b06efa076dc' exited with 128
testing\__init__.py:409: AssertionError
Check failure on line 0 in dist/test-results/integration-1.xml
github-actions / Windows Test Results
pytest ► tests.integration.cli.commands.test_vcs_lock ► test_vcs_equivalence
Failed test found in:
dist/test-results/integration-1.xml
Error:
test_tool = TestTool(tmpdir='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_vcs_equivalence0')
Raw output
test_tool = TestTool(tmpdir='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_vcs_equivalence0')
def test_vcs_equivalence(test_tool):
# type: (TestTool) -> None
> lock1 = test_tool.create_lock(
"ansicolors @ git+https://github.com/jonathaneunice/colors.git@c965f5b9"
)
tests\integration\cli\commands\test_vcs_lock.py:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests\integration\cli\commands\test_vcs_lock.py:44: in create_lock
run_pex3("lock", "create", "--pex-root", self.pex_root, "-o", lock, *args).assert_success()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = IntegResults(output='', error="D:\\a\\pex\\pex\\repo\\pex\\pex_bootstrapper.py:614: PEXWarning: The venv for C:\\Users...p_cache\\.tmp\\pip-download-gs4og_jb\\ansicolors_61805f753f074c5d8b99d1347b686caa' exited with 128\r\n", return_code=1)
expected_output_re = None, expected_error_re = None, re_flags = 0
def assert_success(
self,
expected_output_re=None, # type: Optional[str]
expected_error_re=None, # type: Optional[str]
re_flags=0, # type: int
):
# type: (...) -> None
assert (
> self.return_code == 0
), "integration test failed: return_code={}, output={}, error={}".format(
self.return_code, self.output, self.error
)
E AssertionError: integration test failed: return_code=1, output=, error=D:\a\pex\pex\repo\pex\pex_bootstrapper.py:614: PEXWarning: The venv for C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw0\test_vcs_equivalence0\pex_root\pip\1\25.0\pip.pex\f393fa00dfed244723ee29899da9d0aa9544f95e\no-extra-requirements at C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw0\test_vcs_equivalence0\pex_root\venvs\1\bd15ba00c3abda042f978a05e75b15bacfd964cb\fb46e18d7c7b820e573606d74ea7e95586bba0ee has script shebangs of '#!C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_vcs_equivalence0\\pex_root\\venvs\\1\\s\\c32585ca\\venv\\Scripts\\python.exe' with 156 characters. On some systems this may be too long and cause problems running the venv scripts. You may be able adjust PEX_ROOT from C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw0\test_vcs_equivalence0\pex_root to a shorter path as a work-around.
E pex_warnings.warn(
E pid 3924 -> C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw0\test_vcs_equivalence0\pex_root\venvs\1\bd15ba00c3abda042f978a05e75b15bacfd964cb\fb46e18d7c7b820e573606d74ea7e95586bba0ee\Scripts\python.exe C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw0\test_vcs_equivalence0\pex_root\venvs\1\bd15ba00c3abda042f978a05e75b15bacfd964cb\fb46e18d7c7b820e573606d74ea7e95586bba0ee\pex --disable-pip-version-check --exists-action a --no-input --log C:\Users\runneradmin\AppData\Local\Temp\pex-pip-log.9_sewoq2\pip.log -q --cache-dir C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw0\test_vcs_equivalence0\pex_root\pip\1\25.0\pip_cache download --dest D:.a.pex.pex.repo..tox.py313-pip25_0-integration.Scripts.python.exe ansicolors @ git+https://github.com/jonathaneunice/colors.git@c965f5b9 --retries 5 --timeout 15 exited with 1 and STDERR:
E pip: error: subprocess-exited-with-error
E pip:
E pip: × git clone --filter=blob:none --quiet https://github.com/jonathaneunice/colors.git 'C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw0\test_vcs_equivalence0\pex_root\pip\1\25.0\pip_cache\.tmp\pip-download-gs4og_jb\ansicolors_61805f753f074c5d8b99d1347b686caa' did not run successfully.
E pip: │ exit code: 128
E pip: ╰─> See above for output.
E pip:
E pip: note: This error originates from a subprocess, and is likely not a problem with pip.
E pip: error: subprocess-exited-with-error
E pip:
E pip: × git clone --filter=blob:none --quiet https://github.com/jonathaneunice/colors.git 'C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw0\test_vcs_equivalence0\pex_root\pip\1\25.0\pip_cache\.tmp\pip-download-gs4og_jb\ansicolors_61805f753f074c5d8b99d1347b686caa' did not run successfully.
E pip: │ exit code: 128
E pip: ╰─> See above for output.
E pip:
E pip: note: This error originates from a subprocess, and is likely not a problem with pip.
E pip: Running command git clone --filter=blob:none --quiet https://github.com/jonathaneunice/colors.git 'C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw0\test_vcs_equivalence0\pex_root\pip\1\25.0\pip_cache\.tmp\pip-download-gs4og_jb\ansicolors_61805f753f074c5d8b99d1347b686caa'
E pip: fatal: cannot write keep file 'C:/Users/runneradmin/AppData/Local/Temp/pytest-of-runneradmin/pytest-0/popen-gw0/test_vcs_equivalence0/pex_root/pip/1/25.0/pip_cache/.tmp/pip-download-gs4og_jb/ansicolors_61805f753f074c5d8b99d1347b686caa/.git/objects/pack/pack-9fb186c3b7152d508375a959d24d1f0fa2c567b8.keep': Filename too long
E pip: fatal: fetch-pack: invalid index-pack output
E pip: ERROR: git clone --filter=blob:none --quiet https://github.com/jonathaneunice/colors.git 'C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw0\test_vcs_equivalence0\pex_root\pip\1\25.0\pip_cache\.tmp\pip-download-gs4og_jb\ansicolors_61805f753f074c5d8b99d1347b686caa' exited with 128
testing\__init__.py:409: AssertionError
Check failure on line 0 in dist/test-results/integration-1.xml
github-actions / Windows Test Results
pytest ► tests.integration.venv_ITs.test_issue_2160 ► test_ns_package_split_across_sources_and_deps[packed-zipapp]
Failed test found in:
dist/test-results/integration-1.xml
Error:
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_ns_packag...Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_ns_package_split_across_sources_and_deps_packed_zipapp_')
Raw output
tmpdir = Tempdir(path='C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_ns_packag...Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_ns_package_split_across_sources_and_deps_packed_zipapp_')
top_level_wheel = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_ns_package_split_ac-78b480\\wheels\\top_level-0.1.0-py3-none-any.whl'
style_args = [], layout = 'packed'
@pytest.mark.parametrize(
"style_args",
[
pytest.param([], id="zipapp"),
pytest.param(["--venv"], id="venv (site-packages symlinks)"),
pytest.param(["--venv", "--venv-site-packages-copies"], id="venv (site-packages copies)"),
],
)
@pytest.mark.parametrize(
"layout", [pytest.param(layout, id=layout.value) for layout in Layout.values()]
)
def test_ns_package_split_across_sources_and_deps(
tmpdir, # type: Any
top_level_wheel, # type: str
style_args, # type: List[str]
layout, # type: Layout.Value
):
# type: (...) -> None
sources = os.path.join(str(tmpdir), "sources")
with safe_open(os.path.join(sources, "top_level", "__init__.py"), "w") as fp:
fp.write("__path__ = __import__('pkgutil').extend_path(__path__, __name__)")
with safe_open(os.path.join(sources, "top_level", "mymain.py"), "w") as fp:
fp.write(
dedent(
"""\
from top_level.lib import OG
print("Hello {}!".format(OG))
"""
)
)
pex_root = os.path.join(str(tmpdir), "pex_root")
pex = os.path.join(str(tmpdir), "binary.pex")
run_pex_command(
args=[
"--pex-root",
pex_root,
"--runtime-pex-root",
pex_root,
top_level_wheel,
"-D",
sources,
"-e",
"top_level.mymain",
"-o",
pex,
"--layout",
layout.value,
]
+ style_args
> ).assert_success()
tests\integration\venv_ITs\test_issue_2160.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = IntegResults(output='', error='pex: Hashing pex\r\npex: Hashing pex: 78.6ms\r\npex: Isolating pex\r\npex: Isolating pe...-0\\popen-gw1\\test_ns_package_split_ac-78b480\\wheels\\top_level-0.1.0-py3-none-any.whl\r\n ^\r\n', return_code=1)
expected_output_re = None, expected_error_re = None, re_flags = 0
def assert_success(
self,
expected_output_re=None, # type: Optional[str]
expected_error_re=None, # type: Optional[str]
re_flags=0, # type: int
):
# type: (...) -> None
assert (
> self.return_code == 0
), "integration test failed: return_code={}, output={}, error={}".format(
self.return_code, self.output, self.error
)
E AssertionError: integration test failed: return_code=1, output=, error=pex: Hashing pex
E pex: Hashing pex: 78.6ms
E pex: Isolating pex
E pex: Isolating pex :: Extracting pex to C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw1\test_ns_package_split_ac-78b480\pex_root\isolated\0\f393fa00dfed244723ee29899da9d0aa9544f95e
E pex: Isolating pex: 4271.3ms
E pex: Extracting pex to C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw1\test_ns_package_split_ac-78b480\pex_root\isolated\0\f393fa00dfed244723ee29899da9d0aa9544f95e: 4256.2ms
E pex: Building pex
E pex: Building pex :: Adding distributions from pexes:
E pex: Building pex :: Adding distributions built from local projects and collecting their requirements:
E pex: Building pex :: Adding distributions built from local projects and collecting their requirements: :: Resolving requirements.
E pex: Building pex :: Resolving distributions for requirements: C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw1\test_ns_package_split_ac-78b480\wheels\top_level-0.1.0-py3-none-any.whl
E pex: Building pex :: Resolving distributions for requirements: C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw1\test_ns_package_split_ac-78b480\wheels\top_level-0.1.0-py3-none-any.whl :: Resolving requirements.
E pex: Building pex: 19.7ms
E pex: Adding distributions from pexes: : 0.0ms
E pex: Adding distributions built from local projects and collecting their requirements: : 0.4ms
E pex: Resolving requirements.: 0.3ms
E pex: Resolving distributions for requirements: C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw1\test_ns_package_split_ac-78b480\wheels\top_level-0.1.0-py3-none-any.whl: 1.1ms
E pex: Resolving requirements.: 1.0ms
E Traceback (most recent call last):
E File "D:\a\pex\pex\repo\pex\vendor\_vendored\packaging_24_0\packaging\requirements.py", line 35, in __init__
E parsed = _parse_requirement(requirement_string)
E File "D:\a\pex\pex\repo\pex\vendor\_vendored\packaging_24_0\packaging\_parser.py", line 64, in parse_requirement
E return _parse_requirement(Tokenizer(source, rules=DEFAULT_RULES))
E File "D:\a\pex\pex\repo\pex\vendor\_vendored\packaging_24_0\packaging\_parser.py", line 82, in _parse_requirement
E url, specifier, marker = _parse_requirement_details(tokenizer)
E ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
E File "D:\a\pex\pex\repo\pex\vendor\_vendored\packaging_24_0\packaging\_parser.py", line 126, in _parse_requirement_details
E marker = _parse_requirement_marker(
E tokenizer,
E ...<5 lines>...
E ),
E )
E File "D:\a\pex\pex\repo\pex\vendor\_vendored\packaging_24_0\packaging\_parser.py", line 147, in _parse_requirement_marker
E tokenizer.raise_syntax_error(
E ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
E f"Expected end or semicolon (after {after})",
E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E span_start=span_start,
E ^^^^^^^^^^^^^^^^^^^^^^
E )
E ^
E File "D:\a\pex\pex\repo\pex\vendor\_vendored\packaging_24_0\packaging\_tokenizer.py", line 165, in raise_syntax_error
E raise ParserSyntaxError(
E ...<3 lines>...
E )
E pex.vendor._vendored.packaging_24_0.packaging._tokenizer.ParserSyntaxError: Expected end or semicolon (after name and no valid version specifier)
E C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw1\test_ns_package_split_ac-78b480\wheels\top_level-0.1.0-py3-none-any.whl
E ^
E
E The above exception was the direct cause of the following exception:
E
E Traceback (most recent call last):
E File "D:\a\pex\pex\repo\pex\dist_metadata.py", line 867, in parse
E return cls.from_packaging_requirement(PackagingRequirement(requirement))
E ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
E File "D:\a\pex\pex\repo\pex\vendor\_vendored\packaging_24_0\packaging\requirements.py", line 37, in __init__
E raise InvalidRequirement(str(e)) from e
E pex.vendor._vendored.packaging_24_0.packaging.requirements.InvalidRequirement: Expected end or semicolon (after name and no valid version specifier)
E C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw1\test_ns_package_split_ac-78b480\wheels\top_level-0.1.0-py3-none-any.whl
E ^
E
E During handling of the above exception, another exception occurred:
E
E Traceback (most recent call last):
E File "D:\a\pex\pex\repo\pex\requirements.py", line 571, in _parse_requirement_line
E return PyPIRequirement(line, Requirement.parse(processed_text), editable=editable)
E ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
E File "D:\a\pex\pex\repo\pex\dist_metadata.py", line 869, in parse
E raise RequirementParseError(str(e), source=source)
E pex.dist_metadata.RequirementParseError: Expected end or semicolon (after name and no valid version specifier)
E C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw1\test_ns_package_split_ac-78b480\wheels\top_level-0.1.0-py3-none-any.whl
E ^
E
E During handling of the above exception, another exception occurred:
E
E Traceback (most recent call last):
E File "D:\a\pex\pex\repo\pex\result.py", line 105, in catch
E return func(*args, **kwargs)
E File "D:\a\pex\pex\repo\pex\bin\pex.py", line 1328, in do_main
E pex_builder = build_pex(
E requirement_configuration=requirement_configuration,
E ...<3 lines>...
E options=options,
E )
E File "D:\a\pex\pex\repo\pex\bin\pex.py", line 1075, in build_pex
E resolve_result = resolve(
E targets=targets,
E ...<9 lines>...
E dependency_configuration=dependency_config,
E )
E File "D:\a\pex\pex\repo\pex\resolve\configured_resolve.py", line 113, in resolve
E return resolve_via_pip(
E targets=targets,
E ...<21 lines>...
E dependency_configuration=dependency_configuration,
E )
E File "D:\a\pex\pex\repo\pex\resolver.py", line 1147, in resolve
E direct_requirements = _parse_reqs(requirements, requirement_files, network_configuration)
E File "D:\a\pex\pex\repo\pex\resolver.py", line 1046, in _parse_reqs
E return requirement_configuration.parse_requirements(network_configuration=network_configuration)
E ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E File "D:\a\pex\pex\repo\pex\resolve\requirement_configuration.py", line 31, in parse_requirements
E parsed_requirements.extend(parse_requirement_strings(self.requirements))
E ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E File "D:\a\pex\pex\repo\pex\requirements.py", line 735, in parse_requirement_strings
E yield parse_requirement_string(requirement)
E ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
E File "D:\a\pex\pex\repo\pex\requirements.py", line 721, in parse_requirement_string
E return _parse_requirement_line(
E LogicalLine(
E ...<5 lines>...
E )
E )
E File "D:\a\pex\pex\repo\pex\requirements.py", line 573, in _parse_requirement_line
E raise ParseError(
E line, "Problem parsing {!r} as a requirement: {}".format(processed_text, e)
E )
E pex.requirements.ParseError: <string> line 1:
E C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw1\test_ns_package_split_ac-78b480\wheels\top_level-0.1.0-py3-none-any.whl
E Problem parsing 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_ns_package_split_ac-78b480\\wheels\\top_level-0.1.0-py3-none-any.whl' as a requirement: Expected end or semicolon (after name and no valid version specifier)
E C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw1\test_ns_package_split_ac-78b480\wheels\top_level-0.1.0-py3-none-any.whl
E ^
E <string> line 1:
E C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw1\test_ns_package_split_ac-78b480\wheels\top_level-0.1.0-py3-none-any.whl
E Problem parsing 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw1\\test_ns_package_split_ac-78b480\\wheels\\top_level-0.1.0-py3-none-any.whl' as a requirement: Expected end or semicolon (after name and no valid version specifier)
E C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\popen-gw1\test_ns_package_split_ac-78b480\wheels\top_level-0.1.0-py3-none-any.whl
E ^
testing\__init__.py:409: AssertionError