Skip to content

Why does tox -l only show python when file is setup.cfg instead of tox.ini? #545

@Flimm

Description

@Flimm

Here's how I can reproduce the bug:

$ virtualenv -p python3 env
$ source env/bin/activate
$ pip install tox
$ ls
env
$ printf '[tox]\nenvlist = py26,py27,py33\n' > setup.cfg
$ cat setup.cfg
[tox]
envlist = py26,py27,py33
$ tox -l
python
$ mv setup.cfg tox.ini
$ tox -l
py26
py27
py33

What is going on? Why is tox -l behaving differently for identical content, the only difference between whether the configuration is loaded from setup.cfg or tox.ini?

Additional debug info:

$ pip list
Package    Version
---------- -------
pip        9.0.1
pluggy     0.4.0
py         1.4.34
setuptools 36.0.1
tox        2.7.0
virtualenv 15.1.0
wheel      0.29.0

I'm on macOS.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions