1
0
mirror of https://github.com/fedora-python/tox-current-env.git synced 2024-12-25 17:46:14 +01:00
github.com_fedora-python_to.../tests/fixtures/tox.ini
Petr Viktorin 2e513fe88f tests: Use sys.exec_prefix, not sys.executable, to determine the Python run
Virtualenv 20.0 follows symlinks when populating sys.executable,
so we can't use it. (AFAIUI it's done to better handle cases where the
system executable is changed after a virtualenv is created.)
See: https://github.com/pypa/virtualenv/pull/1522

sys.exec_prefix still points to inside the virtualenv, so use that
in the tests to determine what's being run.
2020-08-11 17:07:58 +02:00

10 lines
170 B
INI

[tox]
envlist = py36,py37,py38
[testenv]
deps =
six
py
commands =
python -c 'import os, sys; print(os.path.realpath(sys.exec_prefix), "is the exec_prefix")'