Add a reference to PEP-405

This commit is contained in:
Zach Snicker 2024-06-28 22:46:20 +05:30
parent eab0eb34d2
commit edb13b3380
1 changed files with 2 additions and 1 deletions

View File

@ -369,7 +369,8 @@ def pytest_runtestloop(session: Session) -> bool:
def _in_venv(path: Path) -> bool:
"""Attempt to detect if ``path`` is the root of a Virtual Environment by
checking for the existence of the pyvenv.cfg file."""
checking for the existence of the pyvenv.cfg file.
[https://peps.python.org/pep-0405/]"""
try:
return path.joinpath("pyvenv.cfg").is_file()
except OSError: