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

syntax error in tox.ini #497

Open
ctuffli opened this issue Feb 25, 2023 · 1 comment
Open

syntax error in tox.ini #497

ctuffli opened this issue Feb 25, 2023 · 1 comment

Comments

@ctuffli
Copy link

ctuffli commented Feb 25, 2023

Running S3TEST_CONF=s3tests.conf tox generates the error:

$ tox --version
4.4.6 from /home/tuffli/.local/lib/python3.10/site-packages/tox/__init__.py
$ uname -srvmio
Linux 5.15.79.1-microsoft-standard-WSL2 #1 SMP Wed Nov 23 01:01:46 UTC 2022 x86_64 x86_64 GNU/Linux
$ S3TEST_CONF=s3tests.conf tox
py: failed with pass_env values cannot contain whitespace, use comma to have multiple values in a single line, invalid values found 'S3TEST_CONF S3_USE_SIGV4'
  py: FAIL code 1 (0.00 seconds)
  evaluation failed :( (0.06 seconds)

Adding a comma between the variables fixes this for me:

diff --git a/tox.ini b/tox.ini
index 93fde38..4f2aaa8 100644
--- a/tox.ini
+++ b/tox.ini
@@ -3,5 +3,5 @@ envlist = py

 [testenv]
 deps = -rrequirements.txt
-passenv = S3TEST_CONF S3_USE_SIGV4
+passenv = S3TEST_CONF,S3_USE_SIGV4
 commands = pytest {posargs}
@cbodley
Copy link
Contributor

cbodley commented Mar 13, 2023

was this fixed in #498?

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

2 participants