Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: AttributeError on macOS creating a Python 2.x virtualenv #2270

Merged
merged 1 commit into from
Jan 2, 2022

Conversation

moreati
Copy link
Contributor

@moreati moreati commented Dec 31, 2021

Fixes #2269

AttributeError: 'bool' object has no attribute 'error'

when creating a Python 2.x environment on macOS with virtualenv 20.12.0.

Refs #2233

Thanks for contributing, make sure you address all the checklists (for details on how see

development documentation)!

  • ran the linter to address style issues (tox -e fix_lint)
  • wrote descriptive pull request text
  • ensured there are test(s) validating the fix
  • added news fragment in docs/changelog folder

@moreati
Copy link
Contributor Author

moreati commented Dec 31, 2021

Before

WIthout this change I get 3 tests failing under Tox py39, on an M1 Max, with macOS 12.1

  • test_python_activator_cross
    AttributeError: 'bool' object has no attribute 'error'
  • test_getsitepackages_system_site
    AssertionError: assert '/opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages' in ['/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/test_getsitepackages_system_si0/li...ackages', '/opt/homebrew/Cellar/python@3.9/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages']
  • test_cross_major
    AttributeError: 'bool' object has no attribute 'error'
➜  virtualenv git:(main) tox
fix_lint recreate: /Users/alex/src/virtualenv/.tox/fix_lint
fix_lint installdeps: pre-commit>=2
fix_lint installed: cfgv==3.3.1,distlib==0.3.4,filelock==3.4.2,identify==2.4.1,nodeenv==1.6.0,platformdirs==2.4.1,pre-commit==2.16.0,PyYAML==6.0,six==1.16.0,toml==0.10.2,virtualenv==20.12.0
fix_lint run-test-pre: PYTHONHASHSEED='652711250'
fix_lint run-test: commands[0] | pre-commit run --all-files --show-diff-on-failure
[INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Initializing environment for https://github.com/asottile/pyupgrade.
[INFO] Initializing environment for https://github.com/PyCQA/isort.
[INFO] Initializing environment for https://github.com/psf/black.
[INFO] Initializing environment for https://github.com/asottile/blacken-docs.
[INFO] Initializing environment for https://github.com/asottile/blacken-docs:black==21.12b0.
[INFO] Initializing environment for https://github.com/asottile/setup-cfg-fmt.
[INFO] Initializing environment for https://github.com/PyCQA/flake8:flake8-bugbear == 21.11.29.
[INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/asottile/pyupgrade.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/PyCQA/isort.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/psf/black.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/asottile/blacken-docs.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/asottile/setup-cfg-fmt.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/PyCQA/flake8.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
check python ast.........................................................Passed
check builtin type constructor use.......................................Passed
check docstring is first.................................................Passed
check for merge conflicts................................................Passed
check yaml...............................................................Passed
check toml...............................................................Passed
debug statements (python)................................................Passed
fix end of files.........................................................Passed
trim trailing whitespace.................................................Passed
pyupgrade................................................................Passed
isort....................................................................Passed
black....................................................................Passed
blacken-docs.............................................................Passed
rst ``code`` is two backticks............................................Passed
tox-ini-fmt..............................................................Passed
setup-cfg-fmt............................................................Passed
flake8...................................................................Passed
fix_lint run-test: commands[1] | python -c 'import pathlib; print("hint: run {} install to add checks as pre-commit hook".format(pathlib.Path(r"/Users/alex/src/virtualenv/.tox/fix_lint") / "bin" / "pre-commit"))'
hint: run /Users/alex/src/virtualenv/.tox/fix_lint/bin/pre-commit install to add checks as pre-commit hook
py39 inst-nodeps: /Users/alex/src/virtualenv/.tox/.tmp/package/1/virtualenv-20.12.1.dev1+g51408e6.tar.gz
py39 installed: attrs==21.2.0,backports.entry-points-selectable==1.1.1,coverage==6.2,coverage-enable-subprocess==1.0,distlib==0.3.4,filelock==3.4.0,flaky==3.7.0,freezegun==1.1.0,importlib-metadata==4.10.0,iniconfig==1.1.1,packaging==21.3,platformdirs==2.4.0,pluggy==1.0.0,py==1.11.0,pyparsing==3.0.6,pytest==6.2.5,pytest-env==0.6.2,pytest-freezegun==0.4.2,pytest-mock==3.6.1,pytest-randomly==3.10.3,pytest-timeout==2.0.2,python-dateutil==2.8.2,six==1.16.0,toml==0.10.2,virtualenv @ file:///Users/alex/src/virtualenv/.tox/.tmp/package/1/virtualenv-20.12.1.dev1%2Bg51408e6.tar.gz,zipp==3.6.0
py39 run-test-pre: PYTHONHASHSEED='652711250'
py39 run-test: commands[0] | python -m coverage erase
py39 run-test: commands[1] | python -m coverage run -m pytest --color=yes --junitxml /Users/alex/src/virtualenv/.tox/junit.py39.xml tests --int --timeout 600
========================================= test session starts ==========================================
platform darwin -- Python 3.9.9, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
cachedir: .tox/py39/.pytest_cache
Using --randomly-seed=3355339641
rootdir: /Users/alex/src/virtualenv, configfile: setup.cfg
plugins: freezegun-0.4.2, env-0.6.2, flaky-3.7.0, timeout-2.0.2, mock-3.6.1, randomly-3.10.3
timeout: 600.0s
timeout method: signal
timeout func_only: False
collected 306 items                                                                                    

tests/unit/activation/test_batch.py ss                                                           [  0%]
tests/unit/discovery/py_info/test_py_info.py ................................................    [ 16%]
tests/unit/activation/test_python_activator.py ..                                                [ 16%]
tests/unit/config/test_env_var.py ........                                                       [ 19%]
tests/unit/create/test_interpreters.py ..                                                        [ 20%]
tests/unit/activation/test_fish.py ss                                                            [ 20%]
tests/unit/activation/test_powershell.py ss                                                      [ 21%]
tests/unit/activation/test_nushell.py ss                                                         [ 22%]
tests/unit/discovery/test_py_spec.py ................................................            [ 37%]
tests/integration/test_run_int.py .                                                              [ 38%]
tests/unit/seed/wheels/test_acquire_find_wheel.py ....                                           [ 39%]
tests/unit/activation/test_csh.py ..                                                             [ 40%]
tests/unit/seed/wheels/test_acquire.py .......                                                   [ 42%]
tests/unit/seed/embed/test_base_embed.py ....                                                    [ 43%]
tests/unit/test_util.py s.                                                                       [ 44%]
tests/unit/activation/test_activator.py .                                                        [ 44%]
tests/unit/create/via_global_ref/test_build_c_ext.py ..                                          [ 45%]
tests/unit/discovery/test_discovery.py .......                                                   [ 47%]
tests/unit/seed/wheels/test_periodic_update.py .....................                             [ 54%]
tests/unit/discovery/windows/test_windows_pep514.py ss                                           [ 55%]
tests/unit/config/test_ini.py .                                                                  [ 55%]
tests/unit/activation/test_activation_support.py ............                                    [ 59%]
tests/unit/seed/embed/test_bootstrap_link_via_app_data.py ..........                             [ 62%]
tests/unit/activation/test_activate_this.py F                                                    [ 63%]
tests/unit/create/via_global_ref/test_api.py .                                                   [ 63%]
tests/unit/create/test_creator.py ..s...ss..s.....s.......sss..s....s......s.s..ss.sF....F       [ 81%]
tests/unit/seed/wheels/test_wheels_util.py ....                                                  [ 83%]
tests/unit/activation/test_bash.py ..                                                            [ 83%]
tests/integration/test_zipapp.py ...                                                             [ 84%]
tests/unit/seed/wheels/test_bundle.py .....                                                      [ 86%]
tests/unit/config/test___main__.py ......                                                        [ 88%]
tests/unit/seed/embed/test_pip_invoke.py ....                                                    [ 89%]
tests/unit/test_run.py ....                                                                      [ 90%]
tests/unit/config/cli/test_parser.py ...                                                         [ 91%]
tests/unit/discovery/py_info/test_py_info_exe_based_of.py .........................              [100%]

=============================================== FAILURES ===============================================
_____________________________________ test_python_activator_cross ______________________________________

session_app_data = AppDataDiskFolder(/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0)
cross_python = PathPythonInfo({'executable': '/usr/bin/python2', 'sysconfig_paths': {'data': '{base}', 'platstdlib': '{platbase}/lib/...ramework/Versions/2.7', 'exec_prefix': '/System/Library/Frameworks/Python.framework/Versions/2.7', 'architecture': 64})
special_name_dir = PosixPath('/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/test_python_activator_cross0/e-$ èрт🚒♞中片-j')

    def test_python_activator_cross(session_app_data, cross_python, special_name_dir):
        options = VirtualEnvOptions()
        cli_args = [
            str(special_name_dir),
            "-p",
            str(cross_python.executable),
            "--app-data",
            str(session_app_data.lock.path),
            "--without-pip",
            "--activators",
            "",
        ]
>       session = session_via_cli(cli_args, options)

cli_args   = ['/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/test_python_activator_cross0/e-$ è...vate/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0', '--without-pip', ...]
cross_python = PathPythonInfo({'executable': '/usr/bin/python2', 'sysconfig_paths': {'data': '{base}', 'platstdlib': '{platbase}/lib/...ramework/Versions/2.7', 'exec_prefix': '/System/Library/Frameworks/Python.framework/Versions/2.7', 'architecture': 64})
options    = VirtualEnvOptions(with_traceback=False, verbose=2, quiet=0, env=environ({'HOME': '/Users/alex', 'TOX_WORK_DIR': '/User...0, reset_app_data=False, upgrade_embed_wheels=False, discovery=builtin, python=['/usr/bin/python2'], try_first_with=[])
session_app_data = AppDataDiskFolder(/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0)
special_name_dir = PosixPath('/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/test_python_activator_cross0/e-$ èрт🚒♞中片-j')

tests/unit/activation/test_activate_this.py:18: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/py39/lib/python3.9/site-packages/virtualenv/run/__init__.py:48: in session_via_cli
    parser, elements = build_parser(args, options, setup_logging, env)
        args       = ['/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/test_python_activator_cross0/e-$ è...vate/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0', '--without-pip', ...]
        env        = environ({'HOME': '/Users/alex', 'TOX_WORK_DIR': '/Users/alex/src/virtualenv/.tox', 'TMPDIR': '/var/folders/hw/y1c1nkcs...ate_this.py::test_python_activator_cross (call)', 'VIRTUALENV_NO_PERIODIC_UPDATE': '1', 'VIRTUALENV_NO_DOWNLOAD': '1'})
        options    = VirtualEnvOptions(with_traceback=False, verbose=2, quiet=0, env=environ({'HOME': '/Users/alex', 'TOX_WORK_DIR': '/User...0, reset_app_data=False, upgrade_embed_wheels=False, discovery=builtin, python=['/usr/bin/python2'], try_first_with=[])
        setup_logging = True
.tox/py39/lib/python3.9/site-packages/virtualenv/run/__init__.py:74: in build_parser
    CreatorSelector(interpreter, parser),
        args       = ['/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/test_python_activator_cross0/e-$ è...vate/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0', '--without-pip', ...]
        discover   = Builtin discover of python_spec='/usr/bin/python2'
        env        = environ({'HOME': '/Users/alex', 'TOX_WORK_DIR': '/Users/alex/src/virtualenv/.tox', 'TMPDIR': '/var/folders/hw/y1c1nkcs...ate_this.py::test_python_activator_cross (call)', 'VIRTUALENV_NO_PERIODIC_UPDATE': '1', 'VIRTUALENV_NO_DOWNLOAD': '1'})
        interpreter = PythonInfo({'executable': '/usr/bin/python2', 'sysconfig_paths': {'data': '{base}', 'platstdlib': '{platbase}/lib/pyth...ramework/Versions/2.7', 'exec_prefix': '/System/Library/Frameworks/Python.framework/Versions/2.7', 'architecture': 64})
        options    = VirtualEnvOptions(with_traceback=False, verbose=2, quiet=0, env=environ({'HOME': '/Users/alex', 'TOX_WORK_DIR': '/User...0, reset_app_data=False, upgrade_embed_wheels=False, discovery=builtin, python=['/usr/bin/python2'], try_first_with=[])
        parser     = VirtualEnvConfigParser(prog='virtualenv', usage=None, description=None, formatter_class=<class 'virtualenv.config.cli.parser.HelpFormatter'>, conflict_handler='error', add_help=False)
        setup_logging = True
.tox/py39/lib/python3.9/site-packages/virtualenv/run/plugin/creators.py:15: in __init__
    creators, self.key_to_meta, self.describe, self.builtin_key = self.for_interpreter(interpreter)
        __class__  = <class 'virtualenv.run.plugin.creators.CreatorSelector'>
        interpreter = PythonInfo({'executable': '/usr/bin/python2', 'sysconfig_paths': {'data': '{base}', 'platstdlib': '{platbase}/lib/pyth...ramework/Versions/2.7', 'exec_prefix': '/System/Library/Frameworks/Python.framework/Versions/2.7', 'architecture': 64})
        parser     = VirtualEnvConfigParser(prog='virtualenv', usage=None, description=None, formatter_class=<class 'virtualenv.config.cli.parser.HelpFormatter'>, conflict_handler='error', add_help=False)
        self       = <virtualenv.run.plugin.creators.CreatorSelector object at 0x1065f8910>
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'virtualenv.run.plugin.creators.CreatorSelector'>
interpreter = PythonInfo({'executable': '/usr/bin/python2', 'sysconfig_paths': {'data': '{base}', 'platstdlib': '{platbase}/lib/pyth...ramework/Versions/2.7', 'exec_prefix': '/System/Library/Frameworks/Python.framework/Versions/2.7', 'architecture': 64})

    @classmethod
    def for_interpreter(cls, interpreter):
        key_to_class, key_to_meta, builtin_key, describe = OrderedDict(), {}, None, None
        errors = defaultdict(list)
        for key, creator_class in cls.options("virtualenv.create").items():
            if key == "builtin":
                raise RuntimeError("builtin creator is a reserved name")
            meta = creator_class.can_create(interpreter)
            if meta:
>               if meta.error:
E               AttributeError: 'bool' object has no attribute 'error'

builtin_key = None
cls        = <class 'virtualenv.run.plugin.creators.CreatorSelector'>
creator_class = <class 'virtualenv.create.via_global_ref.builtin.cpython.mac_os.CPython2macOsArmFramework'>
describe   = None
errors     = defaultdict(<class 'list'>, {})
interpreter = PythonInfo({'executable': '/usr/bin/python2', 'sysconfig_paths': {'data': '{base}', 'platstdlib': '{platbase}/lib/pyth...ramework/Versions/2.7', 'exec_prefix': '/System/Library/Frameworks/Python.framework/Versions/2.7', 'architecture': 64})
key        = 'cpython2-mac-arm-framework'
key_to_class = OrderedDict()
key_to_meta = {}
meta       = True

.tox/py39/lib/python3.9/site-packages/virtualenv/run/plugin/creators.py:27: AttributeError
---------------------------------------- Captured stdout setup -----------------------------------------
26075 find interpreter for spec PythonSpec(major=2) [INFO builtin:62]
26075 proposed PythonInfo(spec=CPython3.9.9.final.0-64, system=/opt/homebrew/opt/python@3.9/bin/python3.9, exe=/Users/alex/src/virtualenv/.tox/py39/bin/python, platform=darwin, version='3.9.9 (main, Nov 21 2021, 03:16:13) \n[Clang 13.0.0 (clang-1300.0.29.3)]', encoding_fs_io=utf-8-utf-8) [INFO builtin:69]
26075 discover PATH[0]=/Users/alex/src/virtualenv/.tox/py39/bin [DEBUG builtin:114]
26076 Attempting to acquire lock 4401655040 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock [DEBUG _api:165]
26076 Lock 4401655040 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock [DEBUG _api:169]
26076 get interpreter info via cmd: /Users/alex/src/virtualenv/.tox/py39/bin/python /Users/alex/src/virtualenv/.tox/py39/lib/python3.9/site-packages/virtualenv/discovery/py_info.py [DEBUG cached_py_info:91]
26160 wrote python info of /Users/alex/src/virtualenv/.tox/py39/bin/python at /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.json [DEBUG via_disk_folder:161]
26160 Attempting to release lock 4401655040 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock [DEBUG _api:199]
26160 Lock 4401655040 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock [DEBUG _api:202]
26160 discover exe for PathPythonInfo(spec=CPython3.9.9.final.0-64, exe=/Users/alex/src/virtualenv/.tox/py39/bin/python, platform=darwin, version='3.9.9 (main, Nov 21 2021, 03:16:13) \n[Clang 13.0.0 (clang-1300.0.29.3)]', encoding_fs_io=utf-8-utf-8) in /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9 [DEBUG py_info:403]
26160 Attempting to acquire lock 4420799552 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock [DEBUG _api:165]
26161 Lock 4420799552 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock [DEBUG _api:169]
26161 get interpreter info via cmd: /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/bin/python3.9 /Users/alex/src/virtualenv/.tox/py39/lib/python3.9/site-packages/virtualenv/discovery/py_info.py [DEBUG cached_py_info:91]
26197 wrote python info of /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/bin/python3.9 at /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.json [DEBUG via_disk_folder:161]
26197 Attempting to release lock 4420799552 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock [DEBUG _api:199]
26197 Lock 4420799552 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock [DEBUG _api:202]
26198 Attempting to acquire lock 4420806544 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock [DEBUG _api:165]
26198 Lock 4420806544 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock [DEBUG _api:169]
26198 get interpreter info via cmd: /opt/homebrew/opt/python@3.9/bin/python3.9 /Users/alex/src/virtualenv/.tox/py39/lib/python3.9/site-packages/virtualenv/discovery/py_info.py [DEBUG cached_py_info:91]
26234 wrote python info of /opt/homebrew/opt/python@3.9/bin/python3.9 at /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.json [DEBUG via_disk_folder:161]
26234 Attempting to release lock 4420806544 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock [DEBUG _api:199]
26234 Lock 4420806544 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock [DEBUG _api:202]
26234 discover PATH[1]=/opt/homebrew/bin [DEBUG builtin:114]
26234 discover PATH[2]=/opt/homebrew/sbin [DEBUG builtin:114]
26234 discover PATH[3]=/usr/local/bin [DEBUG builtin:114]
26234 discover PATH[4]=/usr/bin [DEBUG builtin:114]
26235 Attempting to acquire lock 4401890448 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock [DEBUG _api:165]
26235 Lock 4401890448 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock [DEBUG _api:169]
26235 get interpreter info via cmd: /usr/bin/python2 /Users/alex/src/virtualenv/.tox/py39/lib/python3.9/site-packages/virtualenv/discovery/py_info.py [DEBUG cached_py_info:91]
26289 wrote python info of /usr/bin/python2 at /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.json [DEBUG via_disk_folder:161]
26289 Attempting to release lock 4401890448 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock [DEBUG _api:199]
26289 Lock 4401890448 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock [DEBUG _api:202]
26289 Attempting to acquire lock 4421464320 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock [DEBUG _api:165]
26290 Lock 4421464320 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock [DEBUG _api:169]
26290 get interpreter info via cmd: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python /Users/alex/src/virtualenv/.tox/py39/lib/python3.9/site-packages/virtualenv/discovery/py_info.py [DEBUG cached_py_info:91]
26324 wrote python info of /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python at /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.json [DEBUG via_disk_folder:161]
26324 Attempting to release lock 4421464320 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock [DEBUG _api:199]
26324 Lock 4421464320 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock [DEBUG _api:202]
26324 proposed PathPythonInfo(spec=CPython2.7.18.final.0-64, system=/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python, exe=/usr/bin/python2, platform=darwin, version='2.7.18 (default, Nov 13 2021, 06:17:34) \n[GCC Apple LLVM 13.0.0 (clang-1300.0.29.10) [+internal-os, ptrauth-isa=deployme', encoding_fs_io=utf-8-utf-8) [INFO builtin:69]
26325 accepted PathPythonInfo(spec=CPython2.7.18.final.0-64, system=/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python, exe=/usr/bin/python2, platform=darwin, version='2.7.18 (default, Nov 13 2021, 06:17:34) \n[GCC Apple LLVM 13.0.0 (clang-1300.0.29.10) [+internal-os, ptrauth-isa=deployme', encoding_fs_io=utf-8-utf-8) [DEBUG builtin:71]
26325 Attempting to acquire lock 4401653888 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/.lock [DEBUG _api:165]
26326 Lock 4401653888 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/.lock [DEBUG _api:169]
26326 Attempting to acquire lock 4420806448 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock [DEBUG _api:165]
26326 Lock 4420806448 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock [DEBUG _api:169]
26326 Attempting to release lock 4420806448 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock [DEBUG _api:199]
26326 Lock 4420806448 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock [DEBUG _api:202]
26326 Attempting to acquire lock 4420806448 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock [DEBUG _api:165]
26326 Lock 4420806448 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock [DEBUG _api:169]
26326 Attempting to release lock 4420806448 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock [DEBUG _api:199]
26326 Lock 4420806448 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock [DEBUG _api:202]
26326 Attempting to acquire lock 4420806448 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock [DEBUG _api:165]
26326 Lock 4420806448 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock [DEBUG _api:169]
26326 Attempting to release lock 4420806448 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock [DEBUG _api:199]
26326 Lock 4420806448 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock [DEBUG _api:202]
26326 Attempting to acquire lock 4420806448 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock [DEBUG _api:165]
26326 Lock 4420806448 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock [DEBUG _api:169]
26326 Attempting to release lock 4420806448 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock [DEBUG _api:199]
26326 Lock 4420806448 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock [DEBUG _api:202]
26327 Attempting to acquire lock 4420806448 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock [DEBUG _api:165]
26327 Lock 4420806448 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock [DEBUG _api:169]
26327 Attempting to release lock 4420806448 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock [DEBUG _api:199]
26327 Lock 4420806448 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock [DEBUG _api:202]
26327 Attempting to release lock 4401653888 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/.lock [DEBUG _api:199]
26327 Lock 4401653888 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/.lock [DEBUG _api:202]
------------------------------------------ Captured log setup ------------------------------------------
INFO     root:builtin.py:62 find interpreter for spec PythonSpec(major=2)
INFO     root:builtin.py:69 proposed PythonInfo(spec=CPython3.9.9.final.0-64, system=/opt/homebrew/opt/python@3.9/bin/python3.9, exe=/Users/alex/src/virtualenv/.tox/py39/bin/python, platform=darwin, version='3.9.9 (main, Nov 21 2021, 03:16:13) \n[Clang 13.0.0 (clang-1300.0.29.3)]', encoding_fs_io=utf-8-utf-8)
DEBUG    root:builtin.py:114 discover PATH[0]=/Users/alex/src/virtualenv/.tox/py39/bin
DEBUG    filelock:_api.py:165 Attempting to acquire lock 4401655040 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock
DEBUG    filelock:_api.py:169 Lock 4401655040 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock
DEBUG    root:cached_py_info.py:91 get interpreter info via cmd: /Users/alex/src/virtualenv/.tox/py39/bin/python /Users/alex/src/virtualenv/.tox/py39/lib/python3.9/site-packages/virtualenv/discovery/py_info.py
DEBUG    root:via_disk_folder.py:161 wrote python info of /Users/alex/src/virtualenv/.tox/py39/bin/python at /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.json
DEBUG    filelock:_api.py:199 Attempting to release lock 4401655040 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock
DEBUG    filelock:_api.py:202 Lock 4401655040 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock
DEBUG    root:py_info.py:403 discover exe for PathPythonInfo(spec=CPython3.9.9.final.0-64, exe=/Users/alex/src/virtualenv/.tox/py39/bin/python, platform=darwin, version='3.9.9 (main, Nov 21 2021, 03:16:13) \n[Clang 13.0.0 (clang-1300.0.29.3)]', encoding_fs_io=utf-8-utf-8) in /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9
DEBUG    filelock:_api.py:165 Attempting to acquire lock 4420799552 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock
DEBUG    filelock:_api.py:169 Lock 4420799552 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock
DEBUG    root:cached_py_info.py:91 get interpreter info via cmd: /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/bin/python3.9 /Users/alex/src/virtualenv/.tox/py39/lib/python3.9/site-packages/virtualenv/discovery/py_info.py
DEBUG    root:via_disk_folder.py:161 wrote python info of /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/bin/python3.9 at /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.json
DEBUG    filelock:_api.py:199 Attempting to release lock 4420799552 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock
DEBUG    filelock:_api.py:202 Lock 4420799552 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock
DEBUG    filelock:_api.py:165 Attempting to acquire lock 4420806544 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock
DEBUG    filelock:_api.py:169 Lock 4420806544 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock
DEBUG    root:cached_py_info.py:91 get interpreter info via cmd: /opt/homebrew/opt/python@3.9/bin/python3.9 /Users/alex/src/virtualenv/.tox/py39/lib/python3.9/site-packages/virtualenv/discovery/py_info.py
DEBUG    root:via_disk_folder.py:161 wrote python info of /opt/homebrew/opt/python@3.9/bin/python3.9 at /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.json
DEBUG    filelock:_api.py:199 Attempting to release lock 4420806544 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock
DEBUG    filelock:_api.py:202 Lock 4420806544 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock
DEBUG    root:builtin.py:114 discover PATH[1]=/opt/homebrew/bin
DEBUG    root:builtin.py:114 discover PATH[2]=/opt/homebrew/sbin
DEBUG    root:builtin.py:114 discover PATH[3]=/usr/local/bin
DEBUG    root:builtin.py:114 discover PATH[4]=/usr/bin
DEBUG    filelock:_api.py:165 Attempting to acquire lock 4401890448 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock
DEBUG    filelock:_api.py:169 Lock 4401890448 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock
DEBUG    root:cached_py_info.py:91 get interpreter info via cmd: /usr/bin/python2 /Users/alex/src/virtualenv/.tox/py39/lib/python3.9/site-packages/virtualenv/discovery/py_info.py
DEBUG    root:via_disk_folder.py:161 wrote python info of /usr/bin/python2 at /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.json
DEBUG    filelock:_api.py:199 Attempting to release lock 4401890448 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock
DEBUG    filelock:_api.py:202 Lock 4401890448 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock
DEBUG    filelock:_api.py:165 Attempting to acquire lock 4421464320 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock
DEBUG    filelock:_api.py:169 Lock 4421464320 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock
DEBUG    root:cached_py_info.py:91 get interpreter info via cmd: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python /Users/alex/src/virtualenv/.tox/py39/lib/python3.9/site-packages/virtualenv/discovery/py_info.py
DEBUG    root:via_disk_folder.py:161 wrote python info of /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python at /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.json
DEBUG    filelock:_api.py:199 Attempting to release lock 4421464320 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock
DEBUG    filelock:_api.py:202 Lock 4421464320 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock
INFO     root:builtin.py:69 proposed PathPythonInfo(spec=CPython2.7.18.final.0-64, system=/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python, exe=/usr/bin/python2, platform=darwin, version='2.7.18 (default, Nov 13 2021, 06:17:34) \n[GCC Apple LLVM 13.0.0 (clang-1300.0.29.10) [+internal-os, ptrauth-isa=deployme', encoding_fs_io=utf-8-utf-8)
DEBUG    root:builtin.py:71 accepted PathPythonInfo(spec=CPython2.7.18.final.0-64, system=/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python, exe=/usr/bin/python2, platform=darwin, version='2.7.18 (default, Nov 13 2021, 06:17:34) \n[GCC Apple LLVM 13.0.0 (clang-1300.0.29.10) [+internal-os, ptrauth-isa=deployme', encoding_fs_io=utf-8-utf-8)
DEBUG    filelock:_api.py:165 Attempting to acquire lock 4401653888 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:169 Lock 4401653888 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:165 Attempting to acquire lock 4420806448 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock
DEBUG    filelock:_api.py:169 Lock 4420806448 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock
DEBUG    filelock:_api.py:199 Attempting to release lock 4420806448 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock
DEBUG    filelock:_api.py:202 Lock 4420806448 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock
DEBUG    filelock:_api.py:165 Attempting to acquire lock 4420806448 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock
DEBUG    filelock:_api.py:169 Lock 4420806448 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock
DEBUG    filelock:_api.py:199 Attempting to release lock 4420806448 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock
DEBUG    filelock:_api.py:202 Lock 4420806448 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock
DEBUG    filelock:_api.py:165 Attempting to acquire lock 4420806448 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock
DEBUG    filelock:_api.py:169 Lock 4420806448 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock
DEBUG    filelock:_api.py:199 Attempting to release lock 4420806448 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock
DEBUG    filelock:_api.py:202 Lock 4420806448 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock
DEBUG    filelock:_api.py:165 Attempting to acquire lock 4420806448 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock
DEBUG    filelock:_api.py:169 Lock 4420806448 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock
DEBUG    filelock:_api.py:199 Attempting to release lock 4420806448 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock
DEBUG    filelock:_api.py:202 Lock 4420806448 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock
DEBUG    filelock:_api.py:165 Attempting to acquire lock 4420806448 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock
DEBUG    filelock:_api.py:169 Lock 4420806448 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock
DEBUG    filelock:_api.py:199 Attempting to release lock 4420806448 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock
DEBUG    filelock:_api.py:202 Lock 4420806448 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock
DEBUG    filelock:_api.py:199 Attempting to release lock 4401653888 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:202 Lock 4401653888 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/.lock
---------------------------------------- Captured log teardown -----------------------------------------
DEBUG    filelock:_api.py:165 Attempting to acquire lock 4392255152 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:169 Lock 4392255152 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:165 Attempting to acquire lock 4401910784 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock
DEBUG    filelock:_api.py:169 Lock 4401910784 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock
DEBUG    filelock:_api.py:199 Attempting to release lock 4401910784 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock
DEBUG    filelock:_api.py:202 Lock 4401910784 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock
DEBUG    filelock:_api.py:165 Attempting to acquire lock 4401910784 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock
DEBUG    filelock:_api.py:169 Lock 4401910784 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock
DEBUG    filelock:_api.py:199 Attempting to release lock 4401910784 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock
DEBUG    filelock:_api.py:202 Lock 4401910784 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock
DEBUG    filelock:_api.py:199 Attempting to release lock 4392255152 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:202 Lock 4392255152 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/.lock
___________________________________ test_getsitepackages_system_site ___________________________________

tmp_path = PosixPath('/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/test_getsitepackages_system_si0')

    def test_getsitepackages_system_site(tmp_path):
        # Test without --system-site-packages
        session = cli_run([ensure_text(str(tmp_path))])
    
        system_site_packages = get_expected_system_site_packages(session)
    
        out = subprocess.check_output(
            [str(session.creator.exe), "-c", r"import site; print(site.getsitepackages())"],
            universal_newlines=True,
        )
        site_packages = ast.literal_eval(out)
    
        for system_site_package in system_site_packages:
            assert system_site_package not in site_packages
    
        # Test with --system-site-packages
        session = cli_run([ensure_text(str(tmp_path)), "--system-site-packages"])
    
        system_site_packages = get_expected_system_site_packages(session)
    
        out = subprocess.check_output(
            [str(session.creator.exe), "-c", r"import site; print(site.getsitepackages())"],
            universal_newlines=True,
        )
        site_packages = ast.literal_eval(out)
    
        for system_site_package in system_site_packages:
>           assert system_site_package in site_packages
E           AssertionError: assert '/opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages' in ['/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/test_getsitepackages_system_si0/li...ackages', '/opt/homebrew/Cellar/python@3.9/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages']

out        = "['/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/test_getsitepackages_system_si0/l...ages', '/opt/homebrew/Cellar/python@3.9/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages']\n"
session    = <virtualenv.run.session.Session object at 0x10780e580>
site_packages = ['/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/test_getsitepackages_system_si0/li...ackages', '/opt/homebrew/Cellar/python@3.9/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages']
system_site_package = '/opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages'
system_site_packages = ['/opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages']
tmp_path   = PosixPath('/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/test_getsitepackages_system_si0')

tests/unit/create/test_creator.py:653: AssertionError
------------------------------------------ Captured log setup ------------------------------------------
DEBUG    filelock:_api.py:165 Attempting to acquire lock 4421200432 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:169 Lock 4421200432 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:199 Attempting to release lock 4421200432 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:202 Lock 4421200432 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/.lock
---------------------------------------- Captured log teardown -----------------------------------------
DEBUG    filelock:_api.py:165 Attempting to acquire lock 4420855648 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:169 Lock 4420855648 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:165 Attempting to acquire lock 4420854640 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock
DEBUG    filelock:_api.py:169 Lock 4420854640 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock
DEBUG    filelock:_api.py:199 Attempting to release lock 4420854640 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock
DEBUG    filelock:_api.py:202 Lock 4420854640 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock
DEBUG    filelock:_api.py:165 Attempting to acquire lock 4420854640 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock
DEBUG    filelock:_api.py:169 Lock 4420854640 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock
DEBUG    filelock:_api.py:199 Attempting to release lock 4420854640 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock
DEBUG    filelock:_api.py:202 Lock 4420854640 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock
DEBUG    filelock:_api.py:165 Attempting to acquire lock 4420854640 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock
DEBUG    filelock:_api.py:169 Lock 4420854640 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock
DEBUG    filelock:_api.py:199 Attempting to release lock 4420854640 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock
DEBUG    filelock:_api.py:202 Lock 4420854640 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock
DEBUG    filelock:_api.py:199 Attempting to release lock 4420855648 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:202 Lock 4420855648 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/.lock
___________________________________________ test_cross_major ___________________________________________

cross_python = PathPythonInfo({'executable': '/usr/bin/python2', 'sysconfig_paths': {'data': '{base}', 'platstdlib': '{platbase}/lib/...ramework/Versions/2.7', 'exec_prefix': '/System/Library/Frameworks/Python.framework/Versions/2.7', 'architecture': 64})
coverage_env = <function coverage_env.<locals>.finish at 0x107ad2c10>
tmp_path = PosixPath('/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/test_cross_major0')
session_app_data = AppDataDiskFolder(/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0)
current_fastest = 'builtin'

    @pytest.mark.slow
    def test_cross_major(cross_python, coverage_env, tmp_path, session_app_data, current_fastest):
        cmd = [
            "-p",
            ensure_text(cross_python.executable),
            ensure_text(str(tmp_path)),
            "--no-setuptools",
            "--no-wheel",
            "--activators",
            "",
        ]
>       result = cli_run(cmd)

cmd        = ['-p', '/usr/bin/python2', '/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/test_cross_major0', '--no-setuptools', '--no-wheel', '--activators', ...]
coverage_env = <function coverage_env.<locals>.finish at 0x107ad2c10>
cross_python = PathPythonInfo({'executable': '/usr/bin/python2', 'sysconfig_paths': {'data': '{base}', 'platstdlib': '{platbase}/lib/...ramework/Versions/2.7', 'exec_prefix': '/System/Library/Frameworks/Python.framework/Versions/2.7', 'architecture': 64})
current_fastest = 'builtin'
session_app_data = AppDataDiskFolder(/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0)
tmp_path   = PosixPath('/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/test_cross_major0')

tests/unit/create/test_creator.py:356: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/py39/lib/python3.9/site-packages/virtualenv/run/__init__.py:30: in cli_run
    of_session = session_via_cli(args, options, setup_logging, env)
        args       = ['-p', '/usr/bin/python2', '/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/test_cross_major0', '--no-setuptools', '--no-wheel', '--activators', ...]
        env        = environ({'HOME': '/Users/alex', 'TOX_WORK_DIR': '/Users/alex/src/virtualenv/.tox', 'TMPDIR': '/var/folders/hw/y1c1nkcs...create/test_creator.py::test_cross_major (call)', 'VIRTUALENV_NO_PERIODIC_UPDATE': '1', 'VIRTUALENV_NO_DOWNLOAD': '1'})
        options    = None
        setup_logging = True
tests/conftest.py:229: in _session_via_cli
    session = prev_run(args, options, setup_logging, env)
        args       = ['-p', '/usr/bin/python2', '/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/test_cross_major0', '--no-setuptools', '--no-wheel', '--activators', ...]
        env        = environ({'HOME': '/Users/alex', 'TOX_WORK_DIR': '/Users/alex/src/virtualenv/.tox', 'TMPDIR': '/var/folders/hw/y1c1nkcs...create/test_creator.py::test_cross_major (call)', 'VIRTUALENV_NO_PERIODIC_UPDATE': '1', 'VIRTUALENV_NO_DOWNLOAD': '1'})
        link       = <function link.<locals>._link at 0x1059aa9d0>
        monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x107836d60>
        obj        = {'cov': None}
        options    = None
        prev_run   = <function session_via_cli at 0x104c0ea60>
        setup_logging = True
.tox/py39/lib/python3.9/site-packages/virtualenv/run/__init__.py:48: in session_via_cli
    parser, elements = build_parser(args, options, setup_logging, env)
        args       = ['-p', '/usr/bin/python2', '/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/test_cross_major0', '--no-setuptools', '--no-wheel', '--activators', ...]
        env        = environ({'HOME': '/Users/alex', 'TOX_WORK_DIR': '/Users/alex/src/virtualenv/.tox', 'TMPDIR': '/var/folders/hw/y1c1nkcs...create/test_creator.py::test_cross_major (call)', 'VIRTUALENV_NO_PERIODIC_UPDATE': '1', 'VIRTUALENV_NO_DOWNLOAD': '1'})
        options    = None
        setup_logging = True
.tox/py39/lib/python3.9/site-packages/virtualenv/run/__init__.py:74: in build_parser
    CreatorSelector(interpreter, parser),
        args       = ['-p', '/usr/bin/python2', '/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/test_cross_major0', '--no-setuptools', '--no-wheel', '--activators', ...]
        discover   = Builtin discover of python_spec='/usr/bin/python2'
        env        = environ({'HOME': '/Users/alex', 'TOX_WORK_DIR': '/Users/alex/src/virtualenv/.tox', 'TMPDIR': '/var/folders/hw/y1c1nkcs...create/test_creator.py::test_cross_major (call)', 'VIRTUALENV_NO_PERIODIC_UPDATE': '1', 'VIRTUALENV_NO_DOWNLOAD': '1'})
        interpreter = PythonInfo({'executable': '/usr/bin/python2', 'sysconfig_paths': {'data': '{base}', 'platstdlib': '{platbase}/lib/pyth...ramework/Versions/2.7', 'exec_prefix': '/System/Library/Frameworks/Python.framework/Versions/2.7', 'architecture': 64})
        options    = VirtualEnvOptions(with_traceback=False, verbose=2, quiet=0, env=environ({'HOME': '/Users/alex', 'TOX_WORK_DIR': '/User...0, reset_app_data=False, upgrade_embed_wheels=False, discovery=builtin, python=['/usr/bin/python2'], try_first_with=[])
        parser     = VirtualEnvConfigParser(prog='virtualenv', usage=None, description=None, formatter_class=<class 'virtualenv.config.cli.parser.HelpFormatter'>, conflict_handler='error', add_help=False)
        setup_logging = True
.tox/py39/lib/python3.9/site-packages/virtualenv/run/plugin/creators.py:15: in __init__
    creators, self.key_to_meta, self.describe, self.builtin_key = self.for_interpreter(interpreter)
        __class__  = <class 'virtualenv.run.plugin.creators.CreatorSelector'>
        interpreter = PythonInfo({'executable': '/usr/bin/python2', 'sysconfig_paths': {'data': '{base}', 'platstdlib': '{platbase}/lib/pyth...ramework/Versions/2.7', 'exec_prefix': '/System/Library/Frameworks/Python.framework/Versions/2.7', 'architecture': 64})
        parser     = VirtualEnvConfigParser(prog='virtualenv', usage=None, description=None, formatter_class=<class 'virtualenv.config.cli.parser.HelpFormatter'>, conflict_handler='error', add_help=False)
        self       = <virtualenv.run.plugin.creators.CreatorSelector object at 0x10634eb50>
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'virtualenv.run.plugin.creators.CreatorSelector'>
interpreter = PythonInfo({'executable': '/usr/bin/python2', 'sysconfig_paths': {'data': '{base}', 'platstdlib': '{platbase}/lib/pyth...ramework/Versions/2.7', 'exec_prefix': '/System/Library/Frameworks/Python.framework/Versions/2.7', 'architecture': 64})

    @classmethod
    def for_interpreter(cls, interpreter):
        key_to_class, key_to_meta, builtin_key, describe = OrderedDict(), {}, None, None
        errors = defaultdict(list)
        for key, creator_class in cls.options("virtualenv.create").items():
            if key == "builtin":
                raise RuntimeError("builtin creator is a reserved name")
            meta = creator_class.can_create(interpreter)
            if meta:
>               if meta.error:
E               AttributeError: 'bool' object has no attribute 'error'

builtin_key = None
cls        = <class 'virtualenv.run.plugin.creators.CreatorSelector'>
creator_class = <class 'virtualenv.create.via_global_ref.builtin.cpython.mac_os.CPython2macOsArmFramework'>
describe   = None
errors     = defaultdict(<class 'list'>, {})
interpreter = PythonInfo({'executable': '/usr/bin/python2', 'sysconfig_paths': {'data': '{base}', 'platstdlib': '{platbase}/lib/pyth...ramework/Versions/2.7', 'exec_prefix': '/System/Library/Frameworks/Python.framework/Versions/2.7', 'architecture': 64})
key        = 'cpython2-mac-arm-framework'
key_to_class = OrderedDict()
key_to_meta = {}
meta       = True

.tox/py39/lib/python3.9/site-packages/virtualenv/run/plugin/creators.py:27: AttributeError
------------------------------------------ Captured log setup ------------------------------------------
DEBUG    filelock:_api.py:165 Attempting to acquire lock 4421018528 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:169 Lock 4421018528 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:199 Attempting to release lock 4421018528 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:202 Lock 4421018528 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/.lock
---------------------------------------- Captured log teardown -----------------------------------------
DEBUG    filelock:_api.py:165 Attempting to acquire lock 4401529184 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:169 Lock 4401529184 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:165 Attempting to acquire lock 4401669792 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock
DEBUG    filelock:_api.py:169 Lock 4401669792 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock
DEBUG    filelock:_api.py:199 Attempting to release lock 4401669792 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock
DEBUG    filelock:_api.py:202 Lock 4401669792 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock
DEBUG    filelock:_api.py:165 Attempting to acquire lock 4401669792 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock
DEBUG    filelock:_api.py:169 Lock 4401669792 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock
DEBUG    filelock:_api.py:199 Attempting to release lock 4401669792 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock
DEBUG    filelock:_api.py:202 Lock 4401669792 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock
DEBUG    filelock:_api.py:199 Attempting to release lock 4401529184 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:202 Lock 4401529184 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/session-app-data0/py_info/1/.lock
------------------ generated xml file: /Users/alex/src/virtualenv/.tox/junit.py39.xml ------------------
======================================= short test summary info ========================================
SKIPPED [2] tests/unit/activation/conftest.py:255: BatchActivator not supported
SKIPPED [1] tests/unit/activation/conftest.py:258: Fish(
version=FileNotFoundError(2, 'No such file or directory'),
creator=CPython3Posix(dest=/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/activation-tester-env4/e-$ èрт🚒♞中片-j, clear=False, no_vcs_ignore=False, global=False),
interpreter=PythonInfo(spec=CPython3.9.9.final.0-64, system=/opt/homebrew/opt/python@3.9/bin/python3.9, exe=/Users/alex/src/virtualenv/.tox/py39/bin/python, platform=darwin, version='3.9.9 (main, Nov 21 2021, 03:16:13) \n[Clang 13.0.0 (clang-1300.0.29.3)]', encoding_fs_io=utf-8-utf-8)) is not available due [Errno 2] No such file or directory: 'fish'
SKIPPED [1] tests/unit/activation/conftest.py:258: Fish(
version=FileNotFoundError(2, 'No such file or directory'),
creator=CPython3Posix(dest=/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/activation-tester-env5/e-$ èрт🚒♞中片-j, clear=False, no_vcs_ignore=False, global=False),
interpreter=PythonInfo(spec=CPython3.9.9.final.0-64, system=/opt/homebrew/opt/python@3.9/bin/python3.9, exe=/Users/alex/src/virtualenv/.tox/py39/bin/python, platform=darwin, version='3.9.9 (main, Nov 21 2021, 03:16:13) \n[Clang 13.0.0 (clang-1300.0.29.3)]', encoding_fs_io=utf-8-utf-8)) is not available due [Errno 2] No such file or directory: 'fish'
SKIPPED [1] tests/unit/activation/conftest.py:258: PowerShell(
version=FileNotFoundError(2, 'No such file or directory'),
creator=CPython3Posix(dest=/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/activation-tester-env6/e-$ èрт🚒♞中片-j, clear=False, no_vcs_ignore=False, global=False),
interpreter=PythonInfo(spec=CPython3.9.9.final.0-64, system=/opt/homebrew/opt/python@3.9/bin/python3.9, exe=/Users/alex/src/virtualenv/.tox/py39/bin/python, platform=darwin, version='3.9.9 (main, Nov 21 2021, 03:16:13) \n[Clang 13.0.0 (clang-1300.0.29.3)]', encoding_fs_io=utf-8-utf-8)) is not available due [Errno 2] No such file or directory: 'pwsh'
SKIPPED [1] tests/unit/activation/conftest.py:258: PowerShell(
version=FileNotFoundError(2, 'No such file or directory'),
creator=CPython3Posix(dest=/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/activation-tester-env7/e-$ èрт🚒♞中片-j, clear=False, no_vcs_ignore=False, global=False),
interpreter=PythonInfo(spec=CPython3.9.9.final.0-64, system=/opt/homebrew/opt/python@3.9/bin/python3.9, exe=/Users/alex/src/virtualenv/.tox/py39/bin/python, platform=darwin, version='3.9.9 (main, Nov 21 2021, 03:16:13) \n[Clang 13.0.0 (clang-1300.0.29.3)]', encoding_fs_io=utf-8-utf-8)) is not available due [Errno 2] No such file or directory: 'pwsh'
SKIPPED [1] tests/unit/activation/conftest.py:258: Nushell(
version=TypeError('expected str, bytes or os.PathLike object, not NoneType'),
creator=CPython3Posix(dest=/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/activation-tester-env8/e-$ èрт🚒♞中片-j, clear=False, no_vcs_ignore=False, global=False),
interpreter=PythonInfo(spec=CPython3.9.9.final.0-64, system=/opt/homebrew/opt/python@3.9/bin/python3.9, exe=/Users/alex/src/virtualenv/.tox/py39/bin/python, platform=darwin, version='3.9.9 (main, Nov 21 2021, 03:16:13) \n[Clang 13.0.0 (clang-1300.0.29.3)]', encoding_fs_io=utf-8-utf-8)) is not available due expected str, bytes or os.PathLike object, not NoneType
SKIPPED [1] tests/unit/activation/conftest.py:258: Nushell(
version=TypeError('expected str, bytes or os.PathLike object, not NoneType'),
creator=CPython3Posix(dest=/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-10/activation-tester-env9/e-$ èрт🚒♞中片-j, clear=False, no_vcs_ignore=False, global=False),
interpreter=PythonInfo(spec=CPython3.9.9.final.0-64, system=/opt/homebrew/opt/python@3.9/bin/python3.9, exe=/Users/alex/src/virtualenv/.tox/py39/bin/python, platform=darwin, version='3.9.9 (main, Nov 21 2021, 03:16:13) \n[Clang 13.0.0 (clang-1300.0.29.3)]', encoding_fs_io=utf-8-utf-8)) is not available due expected str, bytes or os.PathLike object, not NoneType
SKIPPED [1] tests/unit/test_util.py:19: subprocess patch only applied on Windows python2
SKIPPED [1] tests/unit/discovery/windows/test_windows_pep514.py:33: no Windows registry
SKIPPED [1] tests/unit/discovery/windows/test_windows_pep514.py:14: no Windows registry
SKIPPED [8] tests/unit/create/conftest.py:101: could not resolve interpreter based on old_virtualenv because failed to create old virtualenv assert not 1
 +  where 1 = <Popen: returncode: 1 args: ['/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn...>.returncode
SKIPPED [1] tests/unit/create/test_creator.py:315: venv without clear might fail
SKIPPED [2] tests/unit/create/test_creator.py:467: we rewrite sys.path only on PY2
SKIPPED [2] tests/unit/create/test_creator.py:523: stdlib components without py files only possible on CPython2
SKIPPED [1] tests/unit/create/test_creator.py:389: OS does not have an altsep
SKIPPED [1] tests/unit/create/test_creator.py:294: python 2 only tests
FAILED tests/unit/activation/test_activate_this.py::test_python_activator_cross - AttributeError: 'bo...
FAILED tests/unit/create/test_creator.py::test_getsitepackages_system_site - AssertionError: assert '...
FAILED tests/unit/create/test_creator.py::test_cross_major - AttributeError: 'bool' object has no att...
========================= 3 failed, 277 passed, 26 skipped in 80.49s (0:01:20) =========================
ERROR: InvocationError for command /Users/alex/src/virtualenv/.tox/py39/bin/python -m coverage run -m pytest --color=yes --junitxml .tox/junit.py39.xml tests --int --timeout 600 (exited with code 1)
py38 create: /Users/alex/src/virtualenv/.tox/py38
SKIPPED: InterpreterNotFound: python3.8
py37 create: /Users/alex/src/virtualenv/.tox/py37
SKIPPED: InterpreterNotFound: python3.7
py36 create: /Users/alex/src/virtualenv/.tox/py36
SKIPPED: InterpreterNotFound: python3.6
py35 create: /Users/alex/src/virtualenv/.tox/py35
SKIPPED: InterpreterNotFound: python3.5
py27 create: /Users/alex/src/virtualenv/.tox/py27
_______________________________________________ summary ________________________________________________
  fix_lint: commands succeeded
ERROR:   py39: commands failed
SKIPPED:  py38: InterpreterNotFound: python3.8
SKIPPED:  py37: InterpreterNotFound: python3.7
SKIPPED:  py36: InterpreterNotFound: python3.6
SKIPPED:  py35: InterpreterNotFound: python3.5
  py27: commands succeeded
ERROR:   pypy3: undefined
ERROR:   pypy2: undefined
ERROR:   readme: undefined
ERROR:   docs: undefined
ERROR:   coverage: undefined
Traceback (most recent call last):
  File "/opt/homebrew/bin/tox", line 8, in <module>
    sys.exit(cmdline())
  File "/opt/homebrew/Cellar/tox/3.24.4_1/libexec/lib/python3.10/site-packages/tox/session/__init__.py", line 44, in cmdline
    main(args)
  File "/opt/homebrew/Cellar/tox/3.24.4_1/libexec/lib/python3.10/site-packages/tox/session/__init__.py", line 69, in main
    exit_code = session.runcommand()
  File "/opt/homebrew/Cellar/tox/3.24.4_1/libexec/lib/python3.10/site-packages/tox/session/__init__.py", line 197, in runcommand
    return self.subcommand_test()
  File "/opt/homebrew/Cellar/tox/3.24.4_1/libexec/lib/python3.10/site-packages/tox/session/__init__.py", line 225, in subcommand_test
    run_sequential(self.config, self.venv_dict)
  File "/opt/homebrew/Cellar/tox/3.24.4_1/libexec/lib/python3.10/site-packages/tox/session/commands/run/sequential.py", line 9, in run_sequential
    if venv.setupenv():
  File "/opt/homebrew/Cellar/tox/3.24.4_1/libexec/lib/python3.10/site-packages/tox/venv.py", line 657, in setupenv
    envlog.set_python_info(command_path)
  File "/opt/homebrew/Cellar/tox/3.24.4_1/libexec/lib/python3.10/site-packages/tox/logs/env.py", line 18, in set_python_info
    answer["executable"] = python_executable
TypeError: 'NoneType' object does not support item assignment

After

With it I get 2 failures (seperate issues/PRs pending)

  • test_getsitepackages_system_site
    AssertionError: assert '/opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages' in ['/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/test_getsitepackages_system_si0/li...ackages', '/opt/homebrew/Cellar/python@3.9/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages']
  • test_cross_major
    PermissionError: [Errno 1] Operation not permitted: '/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/test_cross_major0/bin/bk'
➜  virtualenv git:(macos-arm64-can_create) tox
fix_lint installed: cfgv==3.3.1,distlib==0.3.4,filelock==3.4.2,identify==2.4.1,nodeenv==1.6.0,platformdirs==2.4.1,pre-commit==2.16.0,PyYAML==6.0,six==1.16.0,toml==0.10.2,virtualenv==20.12.0
fix_lint run-test-pre: PYTHONHASHSEED='3150301678'
fix_lint run-test: commands[0] | pre-commit run --all-files --show-diff-on-failure
check python ast.........................................................Passed
check builtin type constructor use.......................................Passed
check docstring is first.................................................Passed
check for merge conflicts................................................Passed
check yaml...............................................................Passed
check toml...............................................................Passed
debug statements (python)................................................Passed
fix end of files.........................................................Passed
trim trailing whitespace.................................................Passed
pyupgrade................................................................Passed
isort....................................................................Passed
black....................................................................Passed
blacken-docs.............................................................Passed
rst ``code`` is two backticks............................................Passed
tox-ini-fmt..............................................................Passed
setup-cfg-fmt............................................................Passed
flake8...................................................................Passed
fix_lint run-test: commands[1] | python -c 'import pathlib; print("hint: run {} install to add checks as pre-commit hook".format(pathlib.Path(r"/Users/alex/src/virtualenv/.tox/fix_lint") / "bin" / "pre-commit"))'
hint: run /Users/alex/src/virtualenv/.tox/fix_lint/bin/pre-commit install to add checks as pre-commit hook
py39 inst-nodeps: /Users/alex/src/virtualenv/.tox/.tmp/package/1/virtualenv-20.12.1.dev2+gd8cc529.tar.gz
py39 installed: attrs==21.2.0,backports.entry-points-selectable==1.1.1,coverage==6.2,coverage-enable-subprocess==1.0,distlib==0.3.4,filelock==3.4.0,flaky==3.7.0,freezegun==1.1.0,importlib-metadata==4.10.0,iniconfig==1.1.1,packaging==21.3,platformdirs==2.4.0,pluggy==1.0.0,py==1.11.0,pyparsing==3.0.6,pytest==6.2.5,pytest-env==0.6.2,pytest-freezegun==0.4.2,pytest-mock==3.6.1,pytest-randomly==3.10.3,pytest-timeout==2.0.2,python-dateutil==2.8.2,six==1.16.0,toml==0.10.2,virtualenv @ file:///Users/alex/src/virtualenv/.tox/.tmp/package/1/virtualenv-20.12.1.dev2%2Bgd8cc529.tar.gz,zipp==3.6.0
py39 run-test-pre: PYTHONHASHSEED='3150301678'
py39 run-test: commands[0] | python -m coverage erase
py39 run-test: commands[1] | python -m coverage run -m pytest --color=yes --junitxml /Users/alex/src/virtualenv/.tox/junit.py39.xml tests --int --timeout 600
========================================= test session starts ==========================================
platform darwin -- Python 3.9.9, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
cachedir: .tox/py39/.pytest_cache
Using --randomly-seed=816766314
rootdir: /Users/alex/src/virtualenv, configfile: setup.cfg
plugins: freezegun-0.4.2, env-0.6.2, flaky-3.7.0, timeout-2.0.2, mock-3.6.1, randomly-3.10.3
timeout: 600.0s
timeout method: signal
timeout func_only: False
collected 306 items                                                                                    

tests/unit/activation/test_batch.py ss                                                           [  0%]
tests/unit/test_util.py .s                                                                       [  1%]
tests/unit/seed/wheels/test_bundle.py .....                                                      [  2%]
tests/unit/seed/embed/test_bootstrap_link_via_app_data.py ..........                             [  6%]
tests/unit/discovery/test_discovery.py .......                                                   [  8%]
tests/unit/config/test_env_var.py ........                                                       [ 11%]
tests/unit/seed/wheels/test_wheels_util.py ....                                                  [ 12%]
tests/unit/create/via_global_ref/test_api.py .                                                   [ 12%]
tests/unit/activation/test_csh.py ..                                                             [ 13%]
tests/unit/discovery/windows/test_windows_pep514.py ss                                           [ 14%]
tests/unit/config/test_ini.py .                                                                  [ 14%]
tests/unit/discovery/test_py_spec.py ................................................            [ 30%]
tests/unit/activation/test_activation_support.py ............                                    [ 33%]
tests/unit/create/test_interpreters.py ..                                                        [ 34%]
tests/unit/seed/embed/test_pip_invoke.py ....                                                    [ 35%]
tests/unit/seed/embed/test_base_embed.py ....                                                    [ 37%]
tests/integration/test_run_int.py .                                                              [ 37%]
tests/unit/config/test___main__.py ......                                                        [ 39%]
tests/unit/activation/test_nushell.py ss                                                         [ 40%]
tests/integration/test_zipapp.py ...                                                             [ 41%]
tests/unit/seed/wheels/test_periodic_update.py .....................                             [ 48%]
tests/unit/activation/test_activate_this.py .                                                    [ 48%]
tests/unit/discovery/py_info/test_py_info.py ................................................    [ 64%]
tests/unit/activation/test_powershell.py ss                                                      [ 64%]
tests/unit/config/cli/test_parser.py ...                                                         [ 65%]
tests/unit/test_run.py ....                                                                      [ 66%]
tests/unit/create/via_global_ref/test_build_c_ext.py ..                                          [ 67%]
tests/unit/discovery/py_info/test_py_info_exe_based_of.py .........................              [ 75%]
tests/unit/activation/test_python_activator.py ..                                                [ 76%]
tests/unit/seed/wheels/test_acquire.py .......                                                   [ 78%]
tests/unit/activation/test_bash.py ..                                                            [ 79%]
tests/unit/seed/wheels/test_acquire_find_wheel.py ....                                           [ 80%]
tests/unit/activation/test_fish.py ss                                                            [ 81%]
tests/unit/create/test_creator.py ....sF.s..s...s............ss.....s.ss..s....s.s...s.ssF       [ 99%]
tests/unit/activation/test_activator.py .                                                        [100%]

=============================================== FAILURES ===============================================
___________________________________ test_getsitepackages_system_site ___________________________________

tmp_path = PosixPath('/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/test_getsitepackages_system_si0')

    def test_getsitepackages_system_site(tmp_path):
        # Test without --system-site-packages
        session = cli_run([ensure_text(str(tmp_path))])
    
        system_site_packages = get_expected_system_site_packages(session)
    
        out = subprocess.check_output(
            [str(session.creator.exe), "-c", r"import site; print(site.getsitepackages())"],
            universal_newlines=True,
        )
        site_packages = ast.literal_eval(out)
    
        for system_site_package in system_site_packages:
            assert system_site_package not in site_packages
    
        # Test with --system-site-packages
        session = cli_run([ensure_text(str(tmp_path)), "--system-site-packages"])
    
        system_site_packages = get_expected_system_site_packages(session)
    
        out = subprocess.check_output(
            [str(session.creator.exe), "-c", r"import site; print(site.getsitepackages())"],
            universal_newlines=True,
        )
        site_packages = ast.literal_eval(out)
    
        for system_site_package in system_site_packages:
>           assert system_site_package in site_packages
E           AssertionError: assert '/opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages' in ['/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/test_getsitepackages_system_si0/li...ackages', '/opt/homebrew/Cellar/python@3.9/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages']

out        = "['/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/test_getsitepackages_system_si0/l...ages', '/opt/homebrew/Cellar/python@3.9/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages']\n"
session    = <virtualenv.run.session.Session object at 0x110ae3400>
site_packages = ['/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/test_getsitepackages_system_si0/li...ackages', '/opt/homebrew/Cellar/python@3.9/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages']
system_site_package = '/opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages'
system_site_packages = ['/opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages']
tmp_path   = PosixPath('/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/test_getsitepackages_system_si0')

tests/unit/create/test_creator.py:653: AssertionError
------------------------------------------ Captured log setup ------------------------------------------
DEBUG    filelock:_api.py:165 Attempting to acquire lock 4574796336 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:169 Lock 4574796336 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:165 Attempting to acquire lock 4574853392 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock
DEBUG    filelock:_api.py:169 Lock 4574853392 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock
DEBUG    filelock:_api.py:199 Attempting to release lock 4574853392 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock
DEBUG    filelock:_api.py:202 Lock 4574853392 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock
DEBUG    filelock:_api.py:165 Attempting to acquire lock 4574853392 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock
DEBUG    filelock:_api.py:169 Lock 4574853392 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock
DEBUG    filelock:_api.py:199 Attempting to release lock 4574853392 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock
DEBUG    filelock:_api.py:202 Lock 4574853392 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock
DEBUG    filelock:_api.py:165 Attempting to acquire lock 4574853392 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock
DEBUG    filelock:_api.py:169 Lock 4574853392 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock
DEBUG    filelock:_api.py:199 Attempting to release lock 4574853392 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock
DEBUG    filelock:_api.py:202 Lock 4574853392 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock
DEBUG    filelock:_api.py:199 Attempting to release lock 4574796336 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:202 Lock 4574796336 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/.lock
---------------------------------------- Captured log teardown -----------------------------------------
DEBUG    filelock:_api.py:165 Attempting to acquire lock 4574720160 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:169 Lock 4574720160 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:165 Attempting to acquire lock 4574720256 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock
DEBUG    filelock:_api.py:169 Lock 4574720256 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock
DEBUG    filelock:_api.py:199 Attempting to release lock 4574720256 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock
DEBUG    filelock:_api.py:202 Lock 4574720256 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock
DEBUG    filelock:_api.py:165 Attempting to acquire lock 4574720256 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock
DEBUG    filelock:_api.py:169 Lock 4574720256 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock
DEBUG    filelock:_api.py:199 Attempting to release lock 4574720256 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock
DEBUG    filelock:_api.py:202 Lock 4574720256 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock
DEBUG    filelock:_api.py:165 Attempting to acquire lock 4574720256 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock
DEBUG    filelock:_api.py:169 Lock 4574720256 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock
DEBUG    filelock:_api.py:199 Attempting to release lock 4574720256 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock
DEBUG    filelock:_api.py:202 Lock 4574720256 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock
DEBUG    filelock:_api.py:199 Attempting to release lock 4574720160 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:202 Lock 4574720160 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/.lock
___________________________________________ test_cross_major ___________________________________________

cross_python = PathPythonInfo({'has_venv': False, 'base_exec_prefix': None, 'sysconfig_paths': {'data': '{base}', 'include': '{base}/...or=7, micro=18, releaselevel='final', serial=0), 'prefix': '/System/Library/Frameworks/Python.framework/Versions/2.7'})
coverage_env = <function coverage_env.<locals>.finish at 0x110c4edc0>
tmp_path = PosixPath('/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/test_cross_major0')
session_app_data = AppDataDiskFolder(/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0)
current_fastest = 'builtin'

    @pytest.mark.slow
    def test_cross_major(cross_python, coverage_env, tmp_path, session_app_data, current_fastest):
        cmd = [
            "-p",
            ensure_text(cross_python.executable),
            ensure_text(str(tmp_path)),
            "--no-setuptools",
            "--no-wheel",
            "--activators",
            "",
        ]
>       result = cli_run(cmd)

cmd        = ['-p', '/usr/bin/python2', '/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/test_cross_major0', '--no-setuptools', '--no-wheel', '--activators', ...]
coverage_env = <function coverage_env.<locals>.finish at 0x110c4edc0>
cross_python = PathPythonInfo({'has_venv': False, 'base_exec_prefix': None, 'sysconfig_paths': {'data': '{base}', 'include': '{base}/...or=7, micro=18, releaselevel='final', serial=0), 'prefix': '/System/Library/Frameworks/Python.framework/Versions/2.7'})
current_fastest = 'builtin'
session_app_data = AppDataDiskFolder(/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0)
tmp_path   = PosixPath('/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/test_cross_major0')

tests/unit/create/test_creator.py:356: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/py39/lib/python3.9/site-packages/virtualenv/run/__init__.py:32: in cli_run
    of_session.run()
        args       = ['-p', '/usr/bin/python2', '/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/test_cross_major0', '--no-setuptools', '--no-wheel', '--activators', ...]
        env        = environ({'PATH': '/Users/alex/src/virtualenv/.tox/py39/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bi...create/test_creator.py::test_cross_major (call)', 'VIRTUALENV_NO_PERIODIC_UPDATE': '1', 'VIRTUALENV_NO_DOWNLOAD': '1'})
        of_session = <virtualenv.run.session.Session object at 0x107fa5850>
        options    = None
        setup_logging = True
.tox/py39/lib/python3.9/site-packages/virtualenv/run/session.py:46: in run
    self._create()
        self       = <virtualenv.run.session.Session object at 0x107fa5850>
.tox/py39/lib/python3.9/site-packages/virtualenv/run/session.py:53: in _create
    self.creator.run()
        self       = <virtualenv.run.session.Session object at 0x107fa5850>
tests/conftest.py:233: in create_run
    result = old_run()
        link       = <function link.<locals>._link at 0x1073ce9d0>
        obj        = {'cov': None}
        old_run    = <bound method Creator.run of CPython2macOsArmFramework(dest=/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/test_cross_major0, clear=False, no_vcs_ignore=False, global=False)>
        session    = <virtualenv.run.session.Session object at 0x107fa5850>
.tox/py39/lib/python3.9/site-packages/virtualenv/create/creator.py:171: in run
    self.create()
        self       = CPython2macOsArmFramework(dest=/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/test_cross_major0, clear=False, no_vcs_ignore=False, global=False)
.tox/py39/lib/python3.9/site-packages/virtualenv/create/via_global_ref/builtin/cpython/mac_os.py:122: in create
    self.fix_signature()
        __class__  = <class 'virtualenv.create.via_global_ref.builtin.cpython.mac_os.CPython2macOsArmFramework'>
        self       = CPython2macOsArmFramework(dest=/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/test_cross_major0, clear=False, no_vcs_ignore=False, global=False)
.tox/py39/lib/python3.9/site-packages/virtualenv/create/via_global_ref/builtin/cpython/mac_os.py:139: in fix_signature
    bak_dir.unlink()
        bak_dir    = PosixPath('/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/test_cross_major0/bin/bk')
        exe        = PosixPath('/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/test_cross_major0/bin/python')
        self       = CPython2macOsArmFramework(dest=/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/test_cross_major0, clear=False, no_vcs_ignore=False, global=False)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/test_cross_major0/bin/bk')
missing_ok = False

    def unlink(self, missing_ok=False):
        """
        Remove this file or link.
        If the path is a directory, use rmdir() instead.
        """
        try:
>           self._accessor.unlink(self)
E           PermissionError: [Errno 1] Operation not permitted: '/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/test_cross_major0/bin/bk'

missing_ok = False
self       = PosixPath('/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/test_cross_major0/bin/bk')

/opt/homebrew/Cellar/python@3.9/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/pathlib.py:1354: PermissionError
------------------------------------------ Captured log setup ------------------------------------------
DEBUG    filelock:_api.py:165 Attempting to acquire lock 4576108256 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:169 Lock 4576108256 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:165 Attempting to acquire lock 4576036608 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock
DEBUG    filelock:_api.py:169 Lock 4576036608 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock
DEBUG    filelock:_api.py:199 Attempting to release lock 4576036608 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock
DEBUG    filelock:_api.py:202 Lock 4576036608 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock
DEBUG    filelock:_api.py:165 Attempting to acquire lock 4576036608 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock
DEBUG    filelock:_api.py:169 Lock 4576036608 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock
DEBUG    filelock:_api.py:199 Attempting to release lock 4576036608 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock
DEBUG    filelock:_api.py:202 Lock 4576036608 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock
DEBUG    filelock:_api.py:165 Attempting to acquire lock 4576036608 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock
DEBUG    filelock:_api.py:169 Lock 4576036608 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock
DEBUG    filelock:_api.py:199 Attempting to release lock 4576036608 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock
DEBUG    filelock:_api.py:202 Lock 4576036608 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock
DEBUG    filelock:_api.py:199 Attempting to release lock 4576108256 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:202 Lock 4576108256 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/.lock
----------------------------------------- Captured stdout call -----------------------------------------
Could not change MacOS code signing on copied python exe at /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/test_cross_major0/bin/python
---------------------------------------- Captured log teardown -----------------------------------------
DEBUG    filelock:_api.py:165 Attempting to acquire lock 4578139824 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:169 Lock 4578139824 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:165 Attempting to acquire lock 4578138384 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock
DEBUG    filelock:_api.py:169 Lock 4578138384 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock
DEBUG    filelock:_api.py:199 Attempting to release lock 4578138384 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock
DEBUG    filelock:_api.py:202 Lock 4578138384 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock
DEBUG    filelock:_api.py:165 Attempting to acquire lock 4578138384 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock
DEBUG    filelock:_api.py:169 Lock 4578138384 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock
DEBUG    filelock:_api.py:199 Attempting to release lock 4578138384 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock
DEBUG    filelock:_api.py:202 Lock 4578138384 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock
DEBUG    filelock:_api.py:199 Attempting to release lock 4578139824 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:202 Lock 4578139824 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/session-app-data0/py_info/1/.lock
------------------ generated xml file: /Users/alex/src/virtualenv/.tox/junit.py39.xml ------------------
======================================= short test summary info ========================================
SKIPPED [2] tests/unit/activation/conftest.py:255: BatchActivator not supported
SKIPPED [1] tests/unit/test_util.py:19: subprocess patch only applied on Windows python2
SKIPPED [1] tests/unit/discovery/windows/test_windows_pep514.py:14: no Windows registry
SKIPPED [1] tests/unit/discovery/windows/test_windows_pep514.py:33: no Windows registry
SKIPPED [1] tests/unit/activation/conftest.py:258: Nushell(
version=TypeError('expected str, bytes or os.PathLike object, not NoneType'),
creator=CPython3Posix(dest=/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/activation-tester-env4/e-$ èрт🚒♞中片-j, clear=False, no_vcs_ignore=False, global=False),
interpreter=PythonInfo(spec=CPython3.9.9.final.0-64, system=/opt/homebrew/opt/python@3.9/bin/python3.9, exe=/Users/alex/src/virtualenv/.tox/py39/bin/python, platform=darwin, version='3.9.9 (main, Nov 21 2021, 03:16:13) \n[Clang 13.0.0 (clang-1300.0.29.3)]', encoding_fs_io=utf-8-utf-8)) is not available due expected str, bytes or os.PathLike object, not NoneType
SKIPPED [1] tests/unit/activation/conftest.py:258: Nushell(
version=TypeError('expected str, bytes or os.PathLike object, not NoneType'),
creator=CPython3Posix(dest=/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/activation-tester-env5/e-$ èрт🚒♞中片-j, clear=False, no_vcs_ignore=False, global=False),
interpreter=PythonInfo(spec=CPython3.9.9.final.0-64, system=/opt/homebrew/opt/python@3.9/bin/python3.9, exe=/Users/alex/src/virtualenv/.tox/py39/bin/python, platform=darwin, version='3.9.9 (main, Nov 21 2021, 03:16:13) \n[Clang 13.0.0 (clang-1300.0.29.3)]', encoding_fs_io=utf-8-utf-8)) is not available due expected str, bytes or os.PathLike object, not NoneType
SKIPPED [1] tests/unit/activation/conftest.py:258: PowerShell(
version=FileNotFoundError(2, 'No such file or directory'),
creator=CPython3Posix(dest=/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/activation-tester-env5/e-$ èрт🚒♞中片-j, clear=False, no_vcs_ignore=False, global=False),
interpreter=PythonInfo(spec=CPython3.9.9.final.0-64, system=/opt/homebrew/opt/python@3.9/bin/python3.9, exe=/Users/alex/src/virtualenv/.tox/py39/bin/python, platform=darwin, version='3.9.9 (main, Nov 21 2021, 03:16:13) \n[Clang 13.0.0 (clang-1300.0.29.3)]', encoding_fs_io=utf-8-utf-8)) is not available due [Errno 2] No such file or directory: 'pwsh'
SKIPPED [1] tests/unit/activation/conftest.py:258: PowerShell(
version=FileNotFoundError(2, 'No such file or directory'),
creator=CPython3Posix(dest=/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/activation-tester-env6/e-$ èрт🚒♞中片-j, clear=False, no_vcs_ignore=False, global=False),
interpreter=PythonInfo(spec=CPython3.9.9.final.0-64, system=/opt/homebrew/opt/python@3.9/bin/python3.9, exe=/Users/alex/src/virtualenv/.tox/py39/bin/python, platform=darwin, version='3.9.9 (main, Nov 21 2021, 03:16:13) \n[Clang 13.0.0 (clang-1300.0.29.3)]', encoding_fs_io=utf-8-utf-8)) is not available due [Errno 2] No such file or directory: 'pwsh'
SKIPPED [1] tests/unit/activation/conftest.py:258: Fish(
version=FileNotFoundError(2, 'No such file or directory'),
creator=CPython3Posix(dest=/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/activation-tester-env10/e-$ èрт🚒♞中片-j, clear=False, no_vcs_ignore=False, global=False),
interpreter=PythonInfo(spec=CPython3.9.9.final.0-64, system=/opt/homebrew/opt/python@3.9/bin/python3.9, exe=/Users/alex/src/virtualenv/.tox/py39/bin/python, platform=darwin, version='3.9.9 (main, Nov 21 2021, 03:16:13) \n[Clang 13.0.0 (clang-1300.0.29.3)]', encoding_fs_io=utf-8-utf-8)) is not available due [Errno 2] No such file or directory: 'fish'
SKIPPED [1] tests/unit/activation/conftest.py:258: Fish(
version=FileNotFoundError(2, 'No such file or directory'),
creator=CPython3Posix(dest=/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/activation-tester-env11/e-$ èрт🚒♞中片-j, clear=False, no_vcs_ignore=False, global=False),
interpreter=PythonInfo(spec=CPython3.9.9.final.0-64, system=/opt/homebrew/opt/python@3.9/bin/python3.9, exe=/Users/alex/src/virtualenv/.tox/py39/bin/python, platform=darwin, version='3.9.9 (main, Nov 21 2021, 03:16:13) \n[Clang 13.0.0 (clang-1300.0.29.3)]', encoding_fs_io=utf-8-utf-8)) is not available due [Errno 2] No such file or directory: 'fish'
SKIPPED [8] tests/unit/create/conftest.py:101: could not resolve interpreter based on old_virtualenv because failed to create old virtualenv assert not 1
 +  where 1 = <Popen: returncode: 1 args: ['/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn...>.returncode
SKIPPED [1] tests/unit/create/test_creator.py:315: venv without clear might fail
SKIPPED [2] tests/unit/create/test_creator.py:523: stdlib components without py files only possible on CPython2
SKIPPED [1] tests/unit/create/test_creator.py:389: OS does not have an altsep
SKIPPED [2] tests/unit/create/test_creator.py:467: we rewrite sys.path only on PY2
SKIPPED [1] tests/unit/create/test_creator.py:294: python 2 only tests
FAILED tests/unit/create/test_creator.py::test_getsitepackages_system_site - AssertionError: assert '...
FAILED tests/unit/create/test_creator.py::test_cross_major - PermissionError: [Errno 1] Operation not...
========================= 2 failed, 278 passed, 26 skipped in 84.36s (0:01:24) =========================
ERROR: InvocationError for command /Users/alex/src/virtualenv/.tox/py39/bin/python -m coverage run -m pytest --color=yes --junitxml .tox/junit.py39.xml tests --int --timeout 600 (exited with code 1)
py38 create: /Users/alex/src/virtualenv/.tox/py38
SKIPPED: InterpreterNotFound: python3.8
py37 create: /Users/alex/src/virtualenv/.tox/py37
SKIPPED: InterpreterNotFound: python3.7
py36 create: /Users/alex/src/virtualenv/.tox/py36
SKIPPED: InterpreterNotFound: python3.6
py35 create: /Users/alex/src/virtualenv/.tox/py35
SKIPPED: InterpreterNotFound: python3.5
py27 create: /Users/alex/src/virtualenv/.tox/py27
_______________________________________________ summary ________________________________________________
  fix_lint: commands succeeded
ERROR:   py39: commands failed
SKIPPED:  py38: InterpreterNotFound: python3.8
SKIPPED:  py37: InterpreterNotFound: python3.7
SKIPPED:  py36: InterpreterNotFound: python3.6
SKIPPED:  py35: InterpreterNotFound: python3.5
  py27: commands succeeded
ERROR:   pypy3: undefined
ERROR:   pypy2: undefined
ERROR:   readme: undefined
ERROR:   docs: undefined
ERROR:   coverage: undefined
Traceback (most recent call last):
  File "/opt/homebrew/bin/tox", line 8, in <module>
    sys.exit(cmdline())
  File "/opt/homebrew/Cellar/tox/3.24.4_1/libexec/lib/python3.10/site-packages/tox/session/__init__.py", line 44, in cmdline
    main(args)
  File "/opt/homebrew/Cellar/tox/3.24.4_1/libexec/lib/python3.10/site-packages/tox/session/__init__.py", line 69, in main
    exit_code = session.runcommand()
  File "/opt/homebrew/Cellar/tox/3.24.4_1/libexec/lib/python3.10/site-packages/tox/session/__init__.py", line 197, in runcommand
    return self.subcommand_test()
  File "/opt/homebrew/Cellar/tox/3.24.4_1/libexec/lib/python3.10/site-packages/tox/session/__init__.py", line 225, in subcommand_test
    run_sequential(self.config, self.venv_dict)
  File "/opt/homebrew/Cellar/tox/3.24.4_1/libexec/lib/python3.10/site-packages/tox/session/commands/run/sequential.py", line 9, in run_sequential
    if venv.setupenv():
  File "/opt/homebrew/Cellar/tox/3.24.4_1/libexec/lib/python3.10/site-packages/tox/venv.py", line 657, in setupenv
    envlog.set_python_info(command_path)
  File "/opt/homebrew/Cellar/tox/3.24.4_1/libexec/lib/python3.10/site-packages/tox/logs/env.py", line 18, in set_python_info
    answer["executable"] = python_executable
TypeError: 'NoneType' object does not support item assignment

moreati added a commit to moreati/virtualenv that referenced this pull request Dec 31, 2021
Fixes pypa#2271

> PermissionError: [Errno 1] Operation not permitted:
'/Users/alex/src/virtualenv/v27/bin/bk'

Requires pypa#2270
Refs pypa#2233
Fixes pypa#2269

> AttributeError: 'bool' object has no attribute 'error'

when creating a Python 2.x environment on macOS with virtualenv 20.12.0.

Refs pypa#2233
@moreati moreati force-pushed the macos-arm64-can_create branch from d8cc529 to c3c8e80 Compare January 1, 2022 18:31
moreati added a commit to moreati/virtualenv that referenced this pull request Jan 1, 2022
Fixes pypa#2271

> PermissionError: [Errno 1] Operation not permitted:
'/Users/alex/src/virtualenv/v27/bin/bk'

Requires pypa#2270
Refs pypa#2233
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AttributeError when creating Python 2 virtualenvs on macOS (arm64)
2 participants