tox icon indicating copy to clipboard operation
tox copied to clipboard

Tests with Python 3.12 fail in macOS (M2 chip) because of virtualenv options not having 'copies' attribute.

Open fabiofortkamp opened this issue 9 months ago • 0 comments

Issue

I'm trying to get involved in tox development, but I cannot even run the tests in my MacBook Pro with M2 chip. When running the test suite with tox -e py312, I get the following failure messages:

FAILED tests/tox_env/python/virtual_env/test_virtualenv_api.py::test_virtualenv_default_settings - AttributeError: 'VirtualEnvOptions' object has no attribute 'copies'
FAILED tests/tox_env/python/virtual_env/test_virtualenv_api.py::test_virtualenv_flipped_settings - AttributeError: 'VirtualEnvOptions' object has no attribute 'copies'
FAILED tests/tox_env/python/virtual_env/test_virtualenv_api.py::test_virtualenv_env_ignored_if_set - AttributeError: 'VirtualEnvOptions' object has no attribute 'copies'
FAILED tests/tox_env/python/virtual_env/test_virtualenv_api.py::test_virtualenv_env_used_if_not_set - AttributeError: 'VirtualEnvOptions' object has no attribute 'copies'

The same tests run fine in a Ubuntu VM I have access to at work. They also run fine with tox -e py311

Sorry if this sounds dumb (my first issue in this project), but should this issue be taken over to the virtualenv repo, or something should be modified in the test suite here in tox (I'm happy to help to either case, I'm just not sure in which repo to develop changes).

Environment

Provide at least:

  • OS: macOS Sonoma 14.4.1
  • Hardware: M2 chip, 8 GB of RAM

tox is installed via pipx, here is pip list inside that environment

Package           Version
----------------- -------
mypy              1.8.0
mypy-extensions   1.0.0
pip               24.0
ruff              0.2.2
setuptools        69.1.0
typing_extensions 4.9.0
wheel             0.42.0

fabiofortkamp avatar May 08 '24 14:05 fabiofortkamp