Skip to content

Commit 4abb8ac

Browse files
committed
Fix Pytest --use-venv init
1 parent c05884a commit 4abb8ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/lib/venv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def _create(self, clear: bool = False) -> None:
124124
)
125125
elif self._venv_type == "venv":
126126
builder = _venv.EnvBuilder()
127-
context = builder.ensure_directories(self.location)
127+
context = builder.ensure_directories(os.fspath(self.location))
128128
builder.create_configuration(context)
129129
builder.setup_python(context)
130130
self.site.mkdir(parents=True, exist_ok=True)

0 commit comments

Comments
 (0)