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

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

Open
fabiofortkamp opened this issue May 8, 2024 · 0 comments

Comments

@fabiofortkamp
Copy link

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
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

No branches or pull requests

1 participant