1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Fix Pytest --use-venv init

This commit is contained in:
Tzu-ping Chung 2023-07-04 15:53:01 +08:00
parent c05884a714
commit 4abb8ac07b

View file

@ -124,7 +124,7 @@ class VirtualEnvironment:
) )
elif self._venv_type == "venv": elif self._venv_type == "venv":
builder = _venv.EnvBuilder() builder = _venv.EnvBuilder()
context = builder.ensure_directories(self.location) context = builder.ensure_directories(os.fspath(self.location))
builder.create_configuration(context) builder.create_configuration(context)
builder.setup_python(context) builder.setup_python(context)
self.site.mkdir(parents=True, exist_ok=True) self.site.mkdir(parents=True, exist_ok=True)