python311Packages.virtualenv-clone: fix tests

This commit is contained in:
Ryan Hendrickson 2023-05-20 15:52:28 -04:00
parent 95483d41fa
commit b182c03d1c

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'"