mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-16 23:43:44 -05:00
Do not allow whitespace in VIRTUALENV_NAME
While this could work in general, it fails in the end, because whitespace is not allowed/supported in the shebang line with the scripts in the created virtualenv.
This commit is contained in:
@@ -132,3 +132,21 @@ OUT
|
||||
unstub pyenv-exec
|
||||
unstub curl
|
||||
}
|
||||
|
||||
@test "no whitespace allowed in virtualenv name" {
|
||||
run pyenv-virtualenv "3.2.1" "foo bar"
|
||||
|
||||
assert_failure
|
||||
assert_output <<OUT
|
||||
pyenv-virtualenv: no whitespace allowed in virtualenv name.
|
||||
OUT
|
||||
}
|
||||
|
||||
@test "no tab allowed in virtualenv name" {
|
||||
run pyenv-virtualenv "3.2.1" "foo bar baz"
|
||||
|
||||
assert_failure
|
||||
assert_output <<OUT
|
||||
pyenv-virtualenv: no whitespace allowed in virtualenv name.
|
||||
OUT
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user