From edb13b3380d5fdde0f13cb5ade84eddec98777f8 Mon Sep 17 00:00:00 2001 From: Zach Snicker Date: Fri, 28 Jun 2024 22:46:20 +0530 Subject: [PATCH] Add a reference to PEP-405 --- src/_pytest/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/_pytest/main.py b/src/_pytest/main.py index efc613910..8ec269060 100644 --- a/src/_pytest/main.py +++ b/src/_pytest/main.py @@ -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: