-
-
Notifications
You must be signed in to change notification settings - Fork 526
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
CliEnv('py37, py36') != CliEnv('py37,py36') #3207
Comments
It turned out to be a change in my tree to Maybe someone who knows what it is can add a test for it in the proper place. |
It turns out that spaces on either side of environment names in a comma-separated list are considered not part of the environment name and removed. This was neither documented nor tested directly; that's now fixed. (It was and is still also tested in `config.cli.test_cli_ini.test_ini_exhaustive_parallel_values` as well.) The discovery of this was documented in issue tox-dev#3207.
It turns out that spaces on either side of environment names in a comma-separated list are considered not part of the environment name and removed. This was neither documented nor tested directly; that's now fixed. (It was and is still also tested in `config.cli.test_cli_ini.test_ini_exhaustive_parallel_values` as well.) The discovery of this was documented in issue #3207.
No code changes; just a "move text" refactoring. This makes the code quicker to understand by moving the exhaustive_ini fixture next to the two tests using it, rather than having it separated from them by several other test functions that don't use it. (This separation is why I didn't immediately see an important point in that in issue tox-dev#3207.) There's also a slight re-ordering of tests; they're still in an order that makes sense for testing the functionality from the smallest to the largest bits.
Ok, I think that #3208 and #3209 essentially fix this issue in the narrower sense. (What's going into that function that causes the extra space is clear once you look at that fixture; it's just that it was way far away from where it was being used, so it wasn't obvious unless you knew to track it down.) In the wider sense, there are probably other things like this, but I don't think it's worth keeping an issue open for them; they should just be fixed as we come across them. |
…3209) No code changes; just a "move text" refactoring. This makes the code quicker to understand by moving the exhaustive_ini fixture next to the two tests using it, rather than having it separated from them by several other test functions that don't use it. (This separation is why I didn't immediately see an important point in that in issue #3207.) There's also a slight re-ordering of tests; they're still in an order that makes sense for testing the functionality from the smallest to the largest bits.
Issue
Looks like there might be more undocumented behaviour going on in
CliEnv
. In one of my checkouts I am regularly getting the following failure:I can't seem to reproduce it in other checkouts on the same machine using the same version of Python. I do not know why.
Nor do I understand how we ended up with an environment name that apparently starts with a space:
py36
.The text was updated successfully, but these errors were encountered: