Merge pull request #233083 from rhendric/rhendric/python311Packages.virtualenv-clone

python311Packages.virtualenv-clone: fix tests
This commit is contained in:
Robert Scott 2023-05-20 23:25:18 +01:00 committed by GitHub
commit 22674f899f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,8 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace tests/__init__.py \
--replace "'virtualenv'" "'${virtualenv}/bin/virtualenv'"
--replace "'virtualenv'" "'${virtualenv}/bin/virtualenv'" \
--replace "'3.9', '3.10']" "'3.9', '3.10', '3.11']" # if the Python version used isn't in this list, tests fail
substituteInPlace tests/test_virtualenv_sys.py \
--replace "'virtualenv'" "'${virtualenv}/bin/virtualenv'"